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. |
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 |
|
|
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"; |
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); |
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"> |