summaryrefslogtreecommitdiff
path: root/themes/marvin/marvin.theme
blob: 87dbe9f8b5cfa2346d426593eb1405c563a170f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?php
// $Id$

  /*********************************************************************

   Theme: Marvin
   Author: Dries Buytaert (Dries)
   Email: dries@drop.org
   Description: Classic theme, white, basic design with a fresh look.
   Notes: Only supports blocks on the right.

  *********************************************************************/

 class Theme extends BaseTheme {
   var $link = "#666699";

   // General colorset that can be used for this theme
   var $foreground = "#000000";
   var $background = "#EAEAEA";

   function header() {
    ?>
     <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
     <html>
     <head>
      <title><?php print variable_get("site_name", "drupal") ." - ". variable_get("site_slogan", ""); ?></title>
      <style type="text/css">
       <!--
        BODY { margin: 10px; font-size: 12pt; font-family: Verdana, Helvetica; }
        SMALL { font-size: 10pt; }
        FONT, P, TH, TD, TR, FORM, OL, UL, LI, INPUT, TEXTAREA, SELECT, A { font-size: 12pt; font-family: Verdana, Helvetica; }
       -->
      </style>
     </head>
     <body text="#000000" bgcolor="#ffffff" alink="#cccccc" link="#665566" vlink="#665566">
      <table border="0" cellpadding="8" cellspacing="0">
       <tr>
        <td><a href="index.php"><img src="themes/marvin/images/logo.gif" alt="" border="0" /></a></td>
        <td>&nbsp;</td>
       </tr>
       <tr>
        <td align="right" colspan="2">
         <small>
         <?php
           print $this->links(link_page());
         ?>
         </small>
        </td>
       </tr>
       <tr>
        <td valign="top" width="85%">
    <?php
   }

   function node($node, $main = 0) {
     print "\n<!-- node: \"$node->title\" -->\n";
     print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n";
     print " <tr><td colspan=\"2\"><img src=\"themes/marvin/images/drop.gif\" alt=\"\" /> &nbsp; <b>". check_output($node->title) ."</b></td></tr>\n";
     print " <tr valign=\"bottom\"><td colspan=\"2\" bgcolor=\"#000000\" width=\"100%\"><img src=\"themes/marvin/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" /></td></tr>\n";
     print " <tr><td nowrap=\"nowrap\"><font color=\"#7C7C7C\"><small>". strtr(t("Submitted by %a on %b"), array("%a" => format_name($node), "%b" => format_date($node->created, "large"))); ?><?php print "</small></font></td><td align=\"right\" valign=\"top\" nowrap><small>". node_index($node) ."</small></td></tr>\n";
     print " <tr><td colspan=\"2\">&nbsp;</td></tr>\n";

     if ($main && $node->teaser) {
       print " <tr><td colspan=\"2\"><p>". check_output($node->teaser, 1) ."</p></td></tr>\n";
     }
     else {
       print " <tr><td colspan=\"2\"><p>". check_output($node->body, 1) ."</p></td></tr>\n";
     }

     print " <tr><td colspan=\"2\">&nbsp;</td></tr>\n";

     if ($main) {
       print " <tr><td colspan=\"2\">". $this->links(link_node($node)) ."</td></tr>\n";
     }

     print "</table>\n";
     print "<br /><br />\n\n";
   }

   function comment($comment, $link = "") {
     print "<a name=\"$comment->cid\">\n";

     // Create comment header:
     print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#000000\" width=\"100%\">\n";
     print " <tr bgcolor=\"#000000\">\n";
     print "  <td>\n";
     print "   <table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" width=\"100%\">\n";
     print "    <tr>\n";
     print "     <td bgcolor=\"#eaeaea\">\n";
     print "      <table border=\"0\" cellpadding=\"2\" cellspacing=\"1\" width=\"100%\">\n";
     print "       <tr>\n";

     // Subject:
     print "        <td align=\"right\" width=\"5%\"><b>". t("Subject") .":</b></td>\n";
     print "        <td width=\"80%\"><b><font color=\"#666699\">". check_output($comment->subject) ."</font></b></td>\n";

     // Moderation:
     print "        <td align=\"right\" rowspan=\"3\" valign=\"middle\" width=\"15%\">\n";
     print comment_moderation($comment);
     print "        </td>\n";
     print "       </tr>\n";

     // Author:
     print "       <tr>\n";
     print "        <td align=\"right\" valign=\"top\">". t("Author") .":</td><td>". format_name($comment) ."</td>\n";
     print "       </tr>\n";

     // Date
     print "       <tr>\n";
     print "        <td align=\"right\">". t("Date") .":</td><td>". format_date($comment->timestamp) ."</td>\n";
     print "       </tr>\n";

     print "      </table>\n";
     print "     </td>\n";
     print "    </tr>\n";

     // Print body of comment:
     if ($comment->comment) {
       print "    <tr><td bgcolor=\"#FFFFFF\">". check_output($comment->comment, 1) ."</td></tr>\n";
     }

     // Print bottom link(s):
     print "    <tr><td align=\"right\" bgcolor=\"#EAEAEA\">[ $link ]</td></tr>\n";
     print "   </table>\n";
     print "  </td>\n";
     print " </tr>\n";
     print "</table>\n";
     print "<br />\n\n";
   }

   function box($subject, $content, $region = "main") {
     print "\n<!-- box: \"$subject\" -->\n";
     print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#000000\" width=\"100%\">\n";
     print " <tr>\n";
     print "  <td>\n";
     print "   <table border=\"0\" cellpadding=\"5\" cellspacing=\"1\" width=\"100%\">\n";
     print "    <tr><td align=\"center\" bgcolor=\"#eaeaea\" nowrap=\"nowrap\"><font color=\"#404040\"><b>$subject</b></font></td></tr>\n";
     print "    <tr><td bgcolor=\"#ffffff\" valign=\"top\">$content</td></tr>\n";
     print "   </table>\n";
     print "  </td>\n";
     print " </tr>\n";
     print "</table>\n";
     print "<br />\n\n";
   }

   function links($links, $delimiter = " &middot; ") {
     return implode($delimiter, $links);
   }

   function footer() {
     ?>
       </td>
       <td valign="top" width="200">
         <?php
          $this->user("all");
          theme_blocks("all", $this);
         ?>
       </td>
      </tr>
      <tr>
       <td align="center" colspan="2">
        <?php
          print "<p><small>". $this->links(link_page()) ."</small></p><p>". variable_get("site_footer", "") ."</p>\n";
        ?>
       </td>
      </tr>
     </table>
    </body>
    </html>
    <?php
   }
 }

?>