home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 March / PCWorld_2001-03_cd.bin / KOMUNIK / progweb / progweb.exe / phpnuke / html / themes / Slashdot / theme.php < prev   
PHP Script  |  2000-11-26  |  4KB  |  55 lines

  1. <?php
  2.  
  3. $thename = "Slashdot";
  4. $bgcolor1 = "#CCCCCC";
  5. $bgcolor2 = "#006666";
  6. $bgcolor3 = "#5272a4";
  7. $textcolor1 = "#FFFFFF";
  8. $textcolor2 = "#000000";
  9. $hr = 0; # 1 to have horizonal rule in comments instead of table bgcolor
  10.  
  11. function themepreview($title, $hometext, $bodytext="", $notes="") {
  12.     echo "<p><b>$title</b><br>$hometext $bodytext $notes";
  13. }
  14.  
  15. function themeindex($aid, $informant, $datetime, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
  16.     global $tipath, $anonymous;
  17.     if ("$aid" == "$informant") { ?>
  18.         <p><table width="99%" cellpadding=0 cellspacing=0 border=0><tr><td valign=top bgcolor="#006666"><img src="themes/Slashdot/slc.gif" width=13 height=16 alt="" align=top><font size=4 color="#FFFFFF"><b><?php echo"$title"; ?></b></td></tr></table><b><?php echo translate ("Posted by "); ?> <?php formatAidHeader($aid) ?> <?php echo translate("on"); ?> <?php echo"$datetime $timezone</b>"; ?><br>(<?php echo $counter; ?> <?php echo translate("reads"); ?>)
  19.         <a href="search.php?query=&topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$tipath$topicimage"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10 border=0></a>
  20.         <br><?php echo"$thetext<br><br>$morelink"; ?>
  21. <?php    } else {
  22.         if($informant != "") $boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  23.         else $boxstuff = "$anonymous ";
  24.         $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes"; ?>
  25.         <p><table width="99%" cellpadding=0 cellspacing=0 border=0><tr><td valign=top bgcolor="#006666"><img src="themes/Slashdot/slc.gif" width=13 height=16 alt="" align=top><font size=4 color="#FFFFFF"><b><?php echo"$title"; ?></b></td></tr></table><b><?php echo translate ("Posted by "); ?> <?php formatAidHeader($aid); ?> <?php echo translate("on"); ?> <?php echo"$datetime $timezone</b>"; ?><br>(<?php echo $counter; ?> <?php echo translate("reads"); ?>)
  26.         <a href="search.php?query=&topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$tipath$topicimage"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10 border=0></a>
  27.         <br><?php echo"$boxstuff<br><br>$morelink"; ?>
  28. <?php    }
  29. }
  30.  
  31. function themearticle ($aid, $informant, $datetime, $title, $thetext) {
  32.     global $admin, $sid, $tipath;
  33.     if ("$aid" == "$informant") { ?>
  34.         <p><table width="99%" cellpadding=0 cellspacing=0 border=0><tr><td valign=top bgcolor="#006666"><img src="themes/Slashdot/slc.gif" width=13 height=16 alt="" align=top><font size=4 color="#FFFFFF"><b><?php echo"$title"; ?></b></td></tr></table><b><?php echo translate("Posted by "); ?> <?php formatAidHeader($aid) ?> <?php echo translate("on"); ?> <?php echo"$datetime $timezone"; ?></b><br><?php echo"$thetext"; ?>
  35. <?php    } else {
  36.         if($informant != "") $boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  37.         else $boxstuff = "$anonymous ";
  38.         $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
  39. ?>        <p><table width="99%" cellpadding=0 cellspacing=0 border=0><tr><td valign=top bgcolor="#006666"><img src="themes/Slashdot/slc.gif" width=13 height=16 alt="" align=top><font size=4 color="#FFFFFF"><b><?php echo"$title"; ?></b></td></tr></table><b><?php echo translate("Posted by "); ?> <?php formatAidHeader($aid); ?> <?php echo translate("on"); ?> <?php echo"$datetime $timezone"; ?></b><br><?php echo"$boxstuff"; ?>
  40. <?php    }
  41. }
  42.  
  43. function themesidebox($title, $content) { ?>
  44.     <table cellpadding=1 cellspacing=0 border=0 width="160" align=center>
  45.     <tr bgcolor="#006666">
  46.     <td valign=top><font size=4 color="#FFFFFF"><B><?php echo"$title"; ?></B></font></td>
  47.     </tr><tr><td bgcolor="#CCCCCC">    <?php echo"$content"; ?>
  48.     </td>
  49.     </tr>
  50.     </table><P>
  51. <?php
  52. }
  53.  
  54. ?>
  55.