164 lines
		
	
	
		
			5.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
			
		
		
	
	
			164 lines
		
	
	
		
			5.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
<?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> </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=\"\" />   <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->timestamp, "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\"> </td></tr>\n";
 | 
						|
     print " <tr><td colspan=\"2\"><p>". check_output($node->body, 1) ."</p></td></tr>\n";
 | 
						|
     print " <tr><td colspan=\"2\"> </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 = " · ") {
 | 
						|
     return implode($delimiter, $links);
 | 
						|
   }
 | 
						|
 | 
						|
   function footer() {
 | 
						|
     ?>
 | 
						|
       </td>
 | 
						|
       <td valign="top" width="200">
 | 
						|
         <?php
 | 
						|
          $this->user("all", $this);
 | 
						|
          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
 | 
						|
   }
 | 
						|
 }
 | 
						|
 | 
						|
?>
 |