/[gnuheter]/gnuheter/themes/Default/theme.php
ViewVC logotype

Diff of /gnuheter/themes/Default/theme.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by metaur, Tue Nov 5 01:13:01 2002 UTC revision 1.5 by aron, Wed Dec 18 10:25:34 2002 UTC
# Line 5  Line 5 
5  #  Francisco Burzi  #  Francisco Burzi
6  #  Patrik Wallström <pawal@blipp.com>  #  Patrik Wallström <pawal@blipp.com>
7  #  Slashdot?  #  Slashdot?
8    #  Aron Boström <aron@forumscaniae.net>
9  #  #
10  # This file is part of Gnuheter.  # This file is part of Gnuheter.
11  # See the file README for copyright notice.  # See the file README for copyright notice.
# Line 32  $bgcolor3 = "#e6e6e6"; Line 33  $bgcolor3 = "#e6e6e6";
33  $textcolor1 = "#FFFFFF";  $textcolor1 = "#FFFFFF";
34  $textcolor2 = "#000000";  $textcolor2 = "#000000";
35    
36    define(STD_FARG1, "#660000"); // Gnuheters bruna standardfärg.
37    define(STD_TEXTFARG1, "#FFFFFF");
38    define(STD_TEXTFARG2, "#000000");
39    define(STD_BGFARG1, "#ffffff");
40    define(STD_BGFARG2, "#e6e6e6");
41    
42    
43  define(_THEME_ARTICLE_LINE1,'<tr bgcolor="#006666"><td colspan="3"><img src="themes/Default/pix.png" width="1" height="1" alt=""></td></tr>');  define(_THEME_ARTICLE_LINE1,'<tr bgcolor="#006666"><td colspan="3"><img src="themes/Default/pix.png" width="1" height="1" alt=""></td></tr>');
44  define(_THEME_ARTICLE_LINE2,'<tr bgcolor="#660000"><td colspan="3"><img src="themes/Default/pix.png" width="1" height="1" alt=""></td></tr>');  define(_THEME_ARTICLE_LINE2,'<tr bgcolor="#660000"><td colspan="3"><img src="themes/Default/pix.png" width="1" height="1" alt=""></td></tr>');
45    
# Line 112  function theme_article_footer($footer) { Line 120  function theme_article_footer($footer) {
120  <?  <?
121  }  }
122    
123  function themeindex ($aid, $informant, $datetime, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {  function themeindex ($aid, $informant, $datetime, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext, $sort="StdIndex") {
124          global $tipath, $anonymous;          global $tipath, $anonymous;
125          if ("$aid" == "$informant") {          if ("$aid" == "$informant") {
126                  echo "<!-- article -->\n";                  echo "<!-- article -->\n";
# Line 148  function themeindex ($aid, $informant, $ Line 156  function themeindex ($aid, $informant, $
156          echo "<br /><br />\n";          echo "<br /><br />\n";
157  }  }
158    
159  function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {  function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext, $sort="StdArtikel") {
160          global $admin, $sid, $tipath;          global $admin, $sid, $tipath;
161          if ("$aid" == "$informant") {          if ("$aid" == "$informant") {
162                  theme_article_title($title);                  theme_article_title($title);
# Line 187  function themearticle ($aid, $informant, Line 195  function themearticle ($aid, $informant,
195          }          }
196  }  }
197    
198  function themesidebox($title, $content) { ?>  function themesimplebox($width,$content, $sort="StdSimpleBox")
199    {
200            switch($sort)
201            {
202                    case "StdSimpleBox": $kantfarg = STD_FARG1; $bakgrundsfarg = STD_BGFARG1; break;
203                    case "AlertSimpleBox": $kantfarg = "#ff0000"; $bakgrundsfarg = "fffff7"; break;
204                    default: $kantfarg = STD_FARG1; $bakgrundsfarg = STD_BGFARG1; break;
205            }
206            echo "<table width=\"$width\" border=\"1\" bordercolor=\"$kantfarg\" style=\"border-style:solid;\" cellpadding=\"6\" cellspacing=\"0\">
207                    <tr bgcolor=\"$bakgrundsfarg\">
208                            <td border=\"0\" width=\"100%\" style=\"border-style:none;\" class=\"box\">
209                                    $content
210                            </td>
211                    </tr>
212            </table>";
213    }
214    
215    function themesidebox($title, $content, $sort="StdSidruta") { ?>
216  <!-- box -->  <!-- box -->
217  <table width="150" border="0" cellpadding="0" cellspacing="0">  <table width="150" border="0" cellpadding="0" cellspacing="0">
218          <tr valign="top" bgcolor="#660000">          <tr valign="top" bgcolor="#660000">

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26