rendered paste body<?php
#########################################################
# New2 theme for PHPNuke 5.0 #
# Translation by Ivan Stojmirov [stojmir@linux.net.mk] #
# Originaly made by Francisco #
#########################################################
$thename = "New";
$lnkcolor = "#035D8A";
$bgcolor1 = "#F4FAFF";
$bgcolor2 = "#006699";
$bgcolor3 = "#F4FAFF";
$bgcolor4 = "#FFFFFF";
$textcolor1 = "FFFFFF";
$textcolor2 = "000000";
$hr = 1; # 1 to have horizonal rule in comments instead of table bgcolor
function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable() {
echo "</td></tr></table></td></tr></table>\n";
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if ($notes != "") {
$notes = "<b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<font size=\"2\" color=\"#505050\">$thetext<br>$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i> $notes\n";
echo "<font size=\"2\" color=\"#505050\">$boxstuff</font>\n";
}
}
function themeheader() {
global $slogan, $sitename, $banners;
echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#035D8A\" vlink=\"#035D8A\">";
echo "<a href=$nuke_url><center><img src=themes/New2/images/logo.jpg border=0></center></a>\n";
if ($banners) {
}
echo "<br>\n";
$public_msg = public_message();
echo "$public_msg<br>";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td valign=top width=140>\n";
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n"
."<tr valign=\"top\">\n"
."<td width=\"98\" valign=\"top\" background=\"themes/New2/images/left.jpg\"><img src=\"themes/New2/images/left.jpg\" width=\"98\" height=\"50\" border=\"0\"></td>\n"
."<td width=\"197\" valign=\"top\">\n";
blocks(left);
echo "</td><td> </td><td valign=top width=100%>\n\n\n";
}
function themefooter() {
global $index;
if ($index == 1) {
echo "</td><td> </td><td valign=top width=200>\n";
blocks(right);
echo "</td>";
}
echo "</td></tr></table></td></tr></table>";
footmsg();
}
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=035D8A><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\" bgcolor=F4FAFF><tr><td>\n";
echo "<a href=modules.php?name=News&new_topic=$topic><img src=$t_image Alt=\"$topictext\" border=0 align=right></a>\n";
echo "<img src=\"themes/New2/images/bullet.gif\" border=0 hspace=3><font size=3><b>$title</b></font><br>\n";
echo "<font size=1 color=035D8A>"._POSTEDBY." ";
formatAidHeader($aid);
echo " "._ON." $time $timezone ($counter "._READS.")<br><br></font>\n";
if ("$aid" == "$informant") {
echo "<font size=2 color=000000>$thetext</font><br><br>\n";
} else {
if ($informant != "") {
$boxstuff = "<a href=modules.php?name=Your_Account&op=userinfo&username=$informant>$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i> $notes\n";
echo "<font size=2 color=000000>$boxstuff</font><br><br>\n";
}
echo "<font size=2>$morelink</font><br>\n";
echo "</td></tr></table>\n";
echo "</td></tr></table>\n";
echo "<br>\n\n\n";
}
function themearticle($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=A1BDD1><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\" bgcolor=FFFFFF><tr><td>\n";
echo "<a href=modules.php?name=News&new_topic=$topic><img src=$t_image Alt=\"$topictext\" border=0 align=right></a>\n";
echo "<img src=\"themes/New2/images/bullet.gif\" border=0 hspace=3><font size=2><b>$title</b></font>\n";
if ($admin) {
echo " [ <a href=admin.php?op=EditStory&sid=$sid>"._EDIT."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>"._DELETE."</a> ]<br>\n";
} else {
echo "<br>\n";
}
echo "<font size=1 color=035D8A>"._POSTEDBY."";
formatAidHeader($aid);
echo " "._ON." $datetime<br>\n";
if ($informant != "") {
echo ""._CONTRIBUTEDBY." <a href=modules.php?name=Your_Account&op=userinfo&username=$informant>$informant</a><br><br>\n";
} else {
echo ""._CONTRIBUTEDBY." $anonymous<br><br></font>\n";
}
echo "<font size=2 color=000000>$thetext</font><br><br>\n";
echo "</td></tr></table>\n";
echo "</td></tr></table>\n\n";
}
function themesidebox($title, $content) {
mt_srand((double)microtime()*1000000);
$rcolor = mt_rand(1, 2);
if ($rcolor == 1) {
$tcolor = "#D2E8F8";
} elseif ($rcolor == 2) {
$tcolor = "#D2E8F8";
}
echo "<table width=\"165\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td>\n";
echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td>\n";
//echo "<td align=\"top\"><img src=\"themes/New2/images/top.jpg\" alt=\"\" border=\"0\" width=\"165\" height=\"117\"></td></tr></table>\n";
echo "<img src=\"themes/New2/images/left1.gif\" alt=\"\" border=\"0\" width=\"11\" height=\"42\"></td>\n";
echo "<td bgcolor=#D2E8F8 width=\"100%\"><b><font size=\"2\" color=\"#FFFFFF\">$title</font></b></td>\n";
echo "<td align=\"right\"><img src=\"themes/New2/images/right1.gif\" alt=\"\" border=\"0\" width=\"11\" height=\"42\"></td></tr></table>\n";
echo "</td></tr><td align=\"center\" valign=\"top\">\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=$tcolor><tr><td width=100%>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\" bgcolor=$tcolor><tr><td width=\"100%\" valign=\"top\" bgcolor=\"#F4FAFF\">\n";
echo "$content\n";
echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td>\n";
echo "<img src=\"pixel.gif\" width=\"1\" height=\"4\" alt=\"\" border=\"0\"></td></tr></table>\n";
echo "</td></tr></table>\n";
echo "</td></tr></table>\n";
echo "</td></tr><tr>\n";
echo "<td align=\"center\" valign=\"bottom\">\n";
echo "<img width=\"165\" height=\"11\" src=\"themes/New2/images/bottom.gif\" vspace=\"0\" border=\"0\"></td></tr></table>\n";
}
?>