hjelp til rettelse i theme.php i postnuke
Er der nogle der ved hvordan jeg flytter "banner" ned ved siden af logo?koden ser sådan ud:
$bgcolor1 = "#ffffff";
$bgcolor2 = "#ffffff";
$bgcolor3 = "#ffffff";
$bgcolor4 = "#ffffff";
$bgcolor5 = "#333333";
$textcolor1 = "#333333";
$textcolor2 = "#333333";
$postnuke_theme = true;
function OpenTable()
{
echo "<table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"background-color:$GLOBALS[bgcolor2]\"><tr><td>\n";
echo "<table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"background-color:$GLOBALS[bgcolor1]\"><tr><td>\n";
}
function OpenTable2()
{
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"background-color:$GLOBALS[bgcolor2];text-align:center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"8\" style=\"background-color:$GLOBALS[bgcolor1]\"><tr><td>\n";
}
function CloseTable()
{
echo "</td></tr></table></td></tr></table><br />\n";
}
function CloseTable2()
{
echo "</td></tr></table></td></tr></table><br />\n";
}
function themeheader()
{
$sitename = pnConfigGetVar('sitename');
$banners = pnConfigGetVar('banners');
echo "</head>";
echo "<body>";
if(pnModAvailable('Banners'))
{
pnBannerDisplay();
}
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:700\">\n" .
"<tr>\n" .
"<td style=\"background-color:$GLOBALS[bgcolor1]\">\n" .
"<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"width:700;background-color:$GLOBALS[bgcolor1]\">\n" .
"<tr>\n" .
"<td>\n" .
"<a href=\"index.php\"><img src=\"" . WHERE_IS_PERSO . "images/logo.gif\" alt=\"" . _WELCOMETO . " $sitename\" /></a>\n" .
"</td><td align=\"right\">" .
"</td>
</tr></table>\n</td></tr>\n<tr><td valign=\"top\" style=\"width:700;background-color:$GLOBALS[bgcolor1]\">" .
"<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" style=\"width:700\">
<tr><td valign=\"top\" style=\"width:0px;background-color:$GLOBALS[bgcolor1]\">";
blocks('left');
echo "<img src=\"images/global/pix.gif\" width=\"0\" height=\"1\" alt=\"\" />
</td>
<td> </td>
<td valign=\"top\">";
if ($GLOBALS['index'] == 1) {
blocks('centre');
}
}
function themefooter()
{
if ($GLOBALS['index'] == 1) {
echo "</td>
<td> </td>
<td valign=\"top\" style=\"width:0px;background-color:$GLOBALS[bgcolor1]\">";
blocks('right');
}
echo "</td></tr></table>
</td></tr></table>
<div style=\"text-align:center\">";
footmsg();
echo "</div>";
}
function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat)
{
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"text-align:center;background-color:$GLOBALS[bgcolor5]\" width=\"0\"><tr><td>\n" .
"<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" width=\"0\"><tr><td style=\"background-color:$GLOBALS[bgcolor1]\">\n" .
"<strong>$preformat[catandtitle]</strong><br />\n" .
"<span class=\"pn-normal\">" . _POSTEDBY . ": $info[informant] " . _ON . " $info[longdatetime]\n";
echo "<br /><a href=\"$links[searchtopic]\">$info[topicname]</a> \n" .
"</span>\n</td></tr>\n" .
"<tr><td style=\"background-color:$GLOBALS[bgcolor1]\">\n" .
"<span class=\"pn-normal\">$info[hometext]\n<br /><br />$preformat[notes]\n<br /><br /></span>\n" .
"</td></tr>\n" .
"<tr><td style=\"background-color:$GLOBALS[bgcolor1];text-align:right\">\n" .
"<span class=\"pn-sub\">$preformat[more]</span>\n" .
"</td></tr></table>\n" .
"</td></tr></table>\n" .
"<br />";
}
function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat)
{
echo"
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"text-align:center;background-color:$GLOBALS[bgcolor5];width:0\"><tr><td>\n
<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" style=\"width:0\"><tr><td style=\"background-color:$GLOBALS[bgcolor1]\">\n
<span class=\"pn-title\">$preformat[catandtitle]</span><br />\n
<span class=\"pn-normal\"><span class=\"pn-sub\">" . _POSTEDBY . ": $info[informant] " . _ON . " $info[briefdatetime]</span></span>\n";
if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_EDIT)) {
echo " <span class=\"pn-normal\"> [ <a href=\"admin.php?module=NS-AddStory&op=EditStory&sid=$info[sid]\">" . _EDIT . "</a> ]";
if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE)) {
echo " [ <a href=\"admin.php?module=NS-AddStory&op=RemoveStory&sid=$info[sid]\">" . _DELETE . "</a> ]</span>";
}
}
echo "\n<br />
<span class=\"pn-normal\"><a href=\"$links[searchtopic]\">$info[topicname]</a> </span>\n
</td></tr>\n<tr><td style=\"background-color:$GLOBALS[bgcolor1]\">\n
<span class=\"pn-normal\">$preformat[fulltext]</span>\n
</td></tr></table>\n</td></tr></table><br />\n";
}
function themesidebox($block)
{
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"width:0;background-color:$GLOBALS[bgcolor5]\">" .
"<tr><td>" .
"<table width=\"0\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">" .
"<tr><td style=\"background-color:$GLOBALS[bgcolor1]\" class=\"pn-title\">$block[title]</td></tr>" .
"<tr><td style=\"background-color:$GLOBALS[bgcolor1]\" class=\"pn-normal\">$block[content]</td></tr>" .
"</table>" .
"</td></tr>" .
"</table><br />";
}
?>