49c5f935b0586ff54af9e76c8486d01bc5d2a26e
[infodrom.org/www.infodrom.org] / Styles / quote.style
1 #use wml::std::box
2
3 # Quote of the day boxes
4 #
5 # quotebox-de-shtml
6 # quotebox-en-shtml
7 # quotebox-de-php
8 # quotebox-en-php
9 #
10
11 # FIXME: Schöner wäre es, wenn ich %0 == "" -> .fortune, sonst %0 abfragen könnte
12
13 <define-tag quotebox-de-shtml whitespace=delete>
14   <box header="<font size=-1 face="Helvetica,Arial" color="#<box-bdcolor>"><b>Zitat des Tages</b></font>"
15        bdcolor="#<box-bdcolor>" bdwidth=2 bdspace=10
16        bgcolor="#<box-bgcolor>"
17        width=500>
18     <font face="helvetica,arial" size=-1 color="#<box-fgcolor>">
19     <!--#include file="%0"-->
20     </font>
21   </box>
22 </define-tag>
23
24 <define-tag quotebox-en-shtml whitespace=delete>
25   <box header="<font size=-1 face="Helvetica,Arial" color="#<box-fgcolor>"><b>Quote of the day</b></font>"
26        bdcolor="#<box-bdcolor>" bdwidth=2 bdspace=10
27        bgcolor="#<box-bgcolor>">
28     <font face="helvetica,arial" size=-1 color="#<box-fgcolor>">
29     <!--#include file="%0"-->
30     </font>
31   </box>
32 </define-tag>
33
34 <define-tag quotebox-en-php whitespace=delete>
35   <box header="<font size=-1 face="Helvetica,Arial" color="#<box-fgcolor>"><b>Zitat des Tages</b></font>"
36        bdcolor="#<box-bdcolor>" bdwidth=2 bdspace=10
37        bgcolor="#<box-bgcolor>">
38     <font face="helvetica,arial" size=-1 color="#<box-fgcolor>">
39 <?
40   if ($fortune = fopen ("index-fortune.html", "r")) {
41     while (!feof ($fortune)) {
42       $line = fgets ($fortune, 255);
43       echo $line;
44     }
45     fclose ($fortune);
46   }
47 ?>
48     </font>
49   </box>
50 </define-tag>
51 <define-tag quotebox-en-php whitespace=delete>
52   <box header="<font size=-1 face="Helvetica,Arial" color="#<box-fgcolor>"><b>Quote of the day</b></font>"
53        bdcolor="#<box-bdcolor>" bdwidth=2 bdspace=10
54        bgcolor="#<box-bgcolor>">
55     <font face="helvetica,arial" size=-1 color="#<box-fgcolor>">
56 <?
57   if ($fortune = fopen ("index-fortune.html", "r")) {
58     while (!feof ($fortune)) {
59       $line = fgets ($fortune, 255);
60       echo $line;
61     }
62     fclose ($fortune);
63   }
64 ?>
65     </font>
66   </box>
67 </define-tag>