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

  1. <?php
  2.  
  3. $thename = "Cuadriculado";
  4. $lnkcolor = "000000";
  5. $bgcolor1 = "#CCCCCC";
  6. $bgcolor2 = "#999999";
  7. $bgcolor3 = "CCCCCC";
  8. $textcolor1 = "#FFFFFF";
  9. $textcolor2 = "#000000";
  10. $hr = 1; # 1 to have horizonal rule in comments instead of table bgcolor
  11.  
  12. function themepreview($title, $hometext, $bodytext="", $notes="") {
  13.     echo "<p><b>$title</b><br>$hometext $bodytext $notes";
  14. }
  15.  
  16. function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
  17.     if (!$config_called) {if (!isset($config)) {if (!isset($config)) { include("config.php"); }}}
  18.     if ("$aid" == "$informant") { ?>
  19.  
  20. <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%>
  21. <tr><td>
  22.  
  23. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  24. <tr><td bgcolor=CCCCCC>
  25. <b><?php echo"$title"; ?></b><br>
  26. <font size=1>
  27. <?php echo translate("Posted by "); ?> <b><?php formatAidHeader($aid) ?></b> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?> (<?php echo $counter; ?> <?php echo translate("reads"); ?>)
  28. <br>
  29. </td>
  30. </tr>
  31. <tr>
  32. <td bgcolor=ffffff>
  33. <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></a>
  34. <?php echo"$thetext<br><br>
  35. </td></tr><tr><td bgcolor=CCCCCC align=right>
  36. <font size=2>$morelink"; ?>
  37. </td>
  38. </tr>
  39. </table>
  40. </td>
  41. </tr>
  42. </table><br>
  43.  
  44.  
  45. <?php    } else {
  46.         if($informant != "") $boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  47.         else $boxstuff = "$anonymous ";
  48.         $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
  49. ?>
  50. <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%>
  51. <tr><td>
  52.  
  53. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  54. <tr><td bgcolor=CCCCCC>
  55. <b><?php echo"$title"; ?></b><br>
  56. <font size=1>
  57. <?php echo translate("Posted by "); ?> <?php formatAidHeader($aid); ?> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?> (<?php echo $counter; ?> <?php echo translate("reads"); ?>)
  58. <br>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td bgcolor=ffffff>
  63. <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></a>
  64. <?php echo"$boxstuff<br><br>
  65. </td></tr><tr><td bgcolor=CCCCCC align=right>
  66. <font size=2>$morelink"; ?>
  67. </td>
  68. </tr>
  69. </table>
  70. </td>
  71. </tr>
  72. </table><br>
  73.  
  74. <?php    }
  75. }
  76.  
  77. function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
  78.     if (!$config_called) {if (!isset($config)) {if (!isset($config)) { include("config.php"); }}}
  79.     if ("$aid" == "$informant") {
  80. echo"
  81.  
  82. <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%>
  83. <tr><td>
  84.  
  85. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  86. <tr><td bgcolor=CCCCCC>
  87. $font2
  88. <b>$title</b><br>$font2 ".translate("Posted on ")." $datetime
  89. ";
  90. global $admin, $sid;
  91. if ($admin) {
  92.     echo "   $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
  93. }
  94. echo "
  95. </td>
  96. </tr>
  97. <tr>
  98. <td bgcolor=ffffff>
  99. <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
  100. $thetext
  101. </td>
  102. </tr>
  103. </table>
  104. </td>
  105. </tr>
  106. </table><br>
  107. ";
  108.  
  109.     } else {
  110.         if($informant != "") $informant = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
  111.         else $boxstuff = "$anonymous ";
  112.         $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
  113. echo "
  114.  
  115. <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%>
  116. <tr><td>
  117. <table border=0 cellpadding=3 cellspacing=1 width=100%>
  118. <tr><td bgcolor=CCCCCC>
  119. $font3
  120. <b>$title</b><br>$font2 ".translate("Contributed by ")." $informant ".translate("on")." $datetime</font>
  121. ";
  122. global $admin, $sid;
  123. if ($admin) {
  124.     echo "   $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
  125. }
  126. echo "
  127. </td>
  128. </tr>
  129. <tr>
  130. <td bgcolor=ffffff>
  131. <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
  132. $font3 $thetext
  133. </td>
  134. </tr>
  135. </table>
  136. </td>
  137. </tr>
  138. </table><br>
  139. ";
  140.  
  141.     }
  142. }
  143.  
  144. function themesidebox($title, $content) {
  145.     if (!$config_called) {if (!isset($config)) {if (!isset($config)) { include("config.php"); }}}
  146.     echo "
  147.     <table border=0 cellspacing=0 cellpadding=0 width=100% bgcolor=000000><tr><td>
  148.     <table width=100% border=0 cellspacing=1 cellpadding=3><tr><td colspan=1 bgcolor=CCCCCC>
  149.     <font size=2>$title</td></tr><tr><td bgcolor=FFFFFF>
  150.     <font size=2>$content</td></tr></table></td></tr></table><br>";
  151. }
  152. ?>