summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rw-r--r--themes/example/example.theme17
-rw-r--r--themes/marvin/marvin.theme323
-rw-r--r--themes/unconed/unconed.theme463
-rw-r--r--themes/xtemplate/xtemplate.theme11
4 files changed, 446 insertions, 368 deletions
diff --git a/themes/example/example.theme b/themes/example/example.theme
index d8ae776ed..bf4b780ef 100644
--- a/themes/example/example.theme
+++ b/themes/example/example.theme
@@ -1,15 +1,18 @@
<?php
// $Id$
-class Theme_example extends BaseTheme {
+function example_help($section) {
- function system($field) {
- $system["name"] = "example";
- $system["author"] = "Dries";
- $system["description"] = "Internet explorer, Netscape, Opera, Lynx";
+ $output = "";
- return $system[$field];
+ switch ($section) {
+ case 'admin/system/themes#description':
+ $output = t("Internet explorer, Netscape, Opera, Lynx");
+ break;
}
+
+ return $output;
}
-?> \ No newline at end of file
+
+?>
diff --git a/themes/marvin/marvin.theme b/themes/marvin/marvin.theme
index d574dc7bc..6cf3df084 100644
--- a/themes/marvin/marvin.theme
+++ b/themes/marvin/marvin.theme
@@ -14,169 +14,166 @@ function marvin_help($section) {
return $output;
}
-class Theme_marvin extends BaseTheme {
-
- function header($title = "") {
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
- <head>
- <?php print theme_head($main); ?>
- <title>
- <?php
- if ($title) {
- print $title ." - ". variable_get("site_name", "drupal");
- }
- else {
- print variable_get("site_name", "drupal") . ($slogan = variable_get("site_slogan", "")) ? " - $slogan" : "";
- }
- ?>
- </title>
- <style type="text/css">
- @import "themes/marvin/marvin.css";
- </style>
- </head>
- <body<?php print theme_onload_attribute(); ?>>
- <table border="0" cellpadding="8" cellspacing="0">
- <tr>
- <td><a href="<?php print url(); ?>"><img src="<?php print $this->path; ?>/images/logo.png" style="border: 0px;" alt="" title="" /></a></td>
- <td>&nbsp;</td>
- </tr>
- <tr>
- <td colspan="2" style="text-align: right;">
- <?php
- print $this->links(link_page());
- ?>
- </td>
- </tr>
- <tr>
- <td style="vertical-align: top; width: 85%;">
+function marvin_header($title = "") {
+ ?>
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+ <html>
+ <head>
+ <?php print theme_head($main); ?>
+ <title>
<?php
- }
-
- function node($node, $main = 0) {
-
- if (module_exist("taxonomy")) {
- $terms = taxonomy_link("taxonomy terms", $node);
- }
- if (count($terms)) {
- $colspan = " colspan=\"2\"";
- }
-
- print "\n<!-- node: \"$node->title\" -->\n";
- print "<table cellpadding=\"0\" cellspacing=\"0\" style=\"border 0px; width: 100%;\">\n";
- print " <tr><td$colspan><img src=\"$this->path/images/drop.gif\" alt=\"\" title=\"\" /> &nbsp; <b>$node->title</b></td></tr>\n";
- print " <tr style=\"vertical-align: bottom;\"><td colspan=\"2\" style=\"background-color: #000000; width: 100%;\"><img src=\"$this->path/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" title=\"\" /></td></tr>\n";
- print " <tr><td><div style=\"color: #7c7c7c;\"><small>". t("Submitted by %a on %b", array("%a" => format_name($node), "%b" => format_date($node->created, "large"))) ."</small></div></td>";
- if ($colspan) {
- print "<td style=\"text-align: right; vertical-align: top;\"><small>". $this->links($terms) ."</small></td>";
- }
- print " </tr>\n";
- print " <tr><td$colspan>&nbsp;</td></tr>\n";
-
- if ($main && $node->teaser) {
- print " <tr><td$colspan><p>$node->teaser</p></td></tr>\n";
- }
- else {
- print " <tr><td$colspan><p>$node->body</p></td></tr>\n";
- }
-
- print " <tr><td$colspan>&nbsp;</td></tr>\n";
-
- if ($links = link_node($node, $main)) {
- print " <tr><td$colspan>". $this->links($links) ."</td></tr>\n";
- }
-
- print "</table>\n";
- print "<br /><br />\n\n";
- }
-
- function comment($comment, $link = "") {
- // Create comment header:
- print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color: #000000; width: 100%;\">\n";
- print " <tr style=\"background-color: #000000;\">\n";
- print " <td>\n";
- print " <table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" style=\"width: 100%;\">\n";
- print " <tr>\n";
- print " <td style=\"background-color: #eaeaea;\">\n";
- print " <table border=\"0\" cellpadding=\"2\" cellspacing=\"1\" style=\"width: 100%;\">\n";
- print " <tr>\n";
-
- // Subject:
- print " <td style=\"text-align: right; width: 5%;\"><b>". t("Subject") .":</b></td>\n";
- print " <td style=\"width: 80%;\"><b><div style=\"color: #666699;\">$comment->subject</div></b></td>\n";
-
- print " </tr>\n";
-
- // Author:
- print " <tr>\n";
- print " <td style=\"text-align: right; vertical-align: top;\">". t("Author") .":</td><td>". format_name($comment) ."</td>\n";
- print " </tr>\n";
-
- // Date
- print " <tr>\n";
- print " <td style=\"text-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 style=\"background-color: #ffffff;\">$comment->comment</td></tr>\n";
- }
-
- // Print bottom link(s):
- print " <tr><td style=\"background-color: #eaeaea; text-align: right;\">[ $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\" style=\"background-color: #000000; width: 100%;\">\n";
- print " <tr>\n";
- print " <td>\n";
- print " <table border=\"0\" cellpadding=\"5\" cellspacing=\"1\" style=\"width: 100%;\">\n";
- print " <tr><td style=\"background-color: #eaeaea; text-align: center;\"><div style=\"color: #404040;\"><b>$subject</b></div></td></tr>\n";
- print " <tr><td style=\"background-color: #ffffff; vertical-align: 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 style="width: 200px; vertical-align: top;">
- <?php
- theme_blocks("all", $this);
- ?>
- </td>
- </tr>
- <tr>
- <td colspan="2" style="text-align: center;">
- <?php
- print "<p>". $this->links(link_page()) ."</p><p>". variable_get("site_footer", "") ."</p>\n";
- ?>
- </td>
- </tr>
- </table>
- <?php print theme_closure(); ?>
- </body>
- </html>
- <?php
- }
- }
+ if ($title) {
+ print $title ." - ". variable_get("site_name", "drupal");
+ }
+ else {
+ print variable_get("site_name", "drupal") . ($slogan = variable_get("site_slogan", "")) ? " - $slogan" : "";
+ }
+ ?>
+ </title>
+ <style type="text/css">
+ @import "themes/marvin/marvin.css";
+ </style>
+ </head>
+ <body<?php print theme_onload_attribute(); ?>>
+ <table border="0" cellpadding="8" cellspacing="0">
+ <tr>
+ <td><a href="<?php print url(); ?>"><img src="<?php print path_to_theme(); ?>/images/logo.png" style="border: 0px;" alt="" title="" /></a></td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td colspan="2" style="text-align: right;">
+ <?php
+ print theme("links", link_page());
+ ?>
+ </td>
+ </tr>
+ <tr>
+ <td style="vertical-align: top; width: 85%;">
+ <?php
+}
+
+function marvin_node($node, $main = 0) {
+
+ if (module_exist("taxonomy")) {
+ $terms = taxonomy_link("taxonomy terms", $node);
+ }
+ if (count($terms)) {
+ $colspan = " colspan=\"2\"";
+ }
+
+ $path = path_to_theme();
+ print "\n<!-- node: \"$node->title\" -->\n";
+ print "<table cellpadding=\"0\" cellspacing=\"0\" style=\"border 0px; width: 100%;\">\n";
+ print " <tr><td$colspan><img src=\"$path/images/drop.gif\" alt=\"\" title=\"\" /> &nbsp; <b>$node->title</b></td></tr>\n";
+ print " <tr style=\"vertical-align: bottom;\"><td colspan=\"2\" style=\"background-color: #000000; width: 100%;\"><img src=\"$path/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" title=\"\" /></td></tr>\n";
+ print " <tr><td><div style=\"color: #7c7c7c;\"><small>". t("Submitted by %a on %b", array("%a" => format_name($node), "%b" => format_date($node->created, "large"))) ."</small></div></td>";
+ if ($colspan) {
+ print "<td style=\"text-align: right; vertical-align: top;\"><small>". theme("links", $terms) ."</small></td>";
+ }
+ print " </tr>\n";
+ print " <tr><td$colspan>&nbsp;</td></tr>\n";
+
+ if ($main && $node->teaser) {
+ print " <tr><td$colspan><p>$node->teaser</p></td></tr>\n";
+ }
+ else {
+ print " <tr><td$colspan><p>$node->body</p></td></tr>\n";
+ }
+ print " <tr><td$colspan>&nbsp;</td></tr>\n";
+
+ if ($links = link_node($node, $main)) {
+ print " <tr><td$colspan>". theme("links", $links) ."</td></tr>\n";
+ }
+
+ print "</table>\n";
+ print "<br /><br />\n\n";
+}
+
+function marvin_comment($comment, $link = "") {
+ // Create comment header:
+ print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color: #000000; width: 100%;\">\n";
+ print " <tr style=\"background-color: #000000;\">\n";
+ print " <td>\n";
+ print " <table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" style=\"width: 100%;\">\n";
+ print " <tr>\n";
+ print " <td style=\"background-color: #eaeaea;\">\n";
+ print " <table border=\"0\" cellpadding=\"2\" cellspacing=\"1\" style=\"width: 100%;\">\n";
+ print " <tr>\n";
+
+ // Subject:
+ print " <td style=\"text-align: right; width: 5%;\"><b>". t("Subject") .":</b></td>\n";
+ print " <td style=\"width: 80%;\"><b><div style=\"color: #666699;\">$comment->subject</div></b></td>\n";
+
+ print " </tr>\n";
+
+ // Author:
+ print " <tr>\n";
+ print " <td style=\"text-align: right; vertical-align: top;\">". t("Author") .":</td><td>". format_name($comment) ."</td>\n";
+ print " </tr>\n";
+
+ // Date
+ print " <tr>\n";
+ print " <td style=\"text-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 style=\"background-color: #ffffff;\">$comment->comment</td></tr>\n";
+ }
+
+ // Print bottom link(s):
+ print " <tr><td style=\"background-color: #eaeaea; text-align: right;\">[ $link ]</td></tr>\n";
+ print " </table>\n";
+ print " </td>\n";
+ print " </tr>\n";
+ print "</table>\n";
+ print "<br />\n\n";
+}
+
+function marvin_box($subject, $content, $region = "main") {
+ print "\n<!-- box: \"$subject\" -->\n";
+ print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color: #000000; width: 100%;\">\n";
+ print " <tr>\n";
+ print " <td>\n";
+ print " <table border=\"0\" cellpadding=\"5\" cellspacing=\"1\" style=\"width: 100%;\">\n";
+ print " <tr><td style=\"background-color: #eaeaea; text-align: center;\"><div style=\"color: #404040;\"><b>$subject</b></div></td></tr>\n";
+ print " <tr><td style=\"background-color: #ffffff; vertical-align: top;\">$content</td></tr>\n";
+ print " </table>\n";
+ print " </td>\n";
+ print " </tr>\n";
+ print "</table>\n";
+ print "<br />\n\n";
+}
+
+function marvin_links($links, $delimiter = " &middot; ") {
+ return implode($delimiter, $links);
+}
+
+function marvin_footer() {
+ ?>
+ </td>
+ <td style="width: 200px; vertical-align: top;">
+ <?php
+ print render_blocks("all");
+ ?>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" style="text-align: center;">
+ <?php
+ print "<p>". theme("links", link_page()) ."</p><p>". variable_get("site_footer", "") ."</p>\n";
+ ?>
+ </td>
+ </tr>
+ </table>
+ <?php print theme_closure(); ?>
+ </body>
+ </html>
+ <?php
+}
?>
diff --git a/themes/unconed/unconed.theme b/themes/unconed/unconed.theme
index 3a2b91486..df2e014ff 100644
--- a/themes/unconed/unconed.theme
+++ b/themes/unconed/unconed.theme
@@ -7,215 +7,296 @@ function unconed_help($section) {
switch ($section) {
case 'admin/system/themes#description':
- $output = t("A PHP theme");
+ $output = t("Internet Explorer, Mozilla, Opera");
break;
}
return $output;
}
- class Theme_unconed extends BaseTheme {
- var $foreground = "#000000";
- var $background = "#ffffff";
-
- var $link = "#000000";
-
- var $cl80 = "#8f9399";
- var $clc0 = "#c8c8d0";
- var $cl00 = "#000000";
-
- // color set #1:
- var $brcolor1 = "#000000"; // border color
- var $bgcolor1 = "#b5bece";
- var $fgcolor1 = "#000000"; // table body color
- var $hlcolor1 = "#000000"; // high-light color
- var $sectioncolor = "#202020";
-
- // color set #2:
- var $bgcolor2 = "#eeeeee";
- var $fgcolor2 = "#000000";
-
- // color set #3:
- var $bgcolor3 = "#d7d7d7";
- var $fgcolor3 = "#000000";
-
- function system($field) {
- $system["name"] = "UnConeD";
- $system["author"] = "Steven Wittens";
- $system["description"] = "Internet Explorer, Mozilla, Opera";
-
- return $system[$field];
- }
-
- function header($title = "") {
- global $base_url;
- srand((double)microtime()*1000000);
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <?php print theme_head($main); ?>
- <title><?php echo ($title ? ($title . " - ") : "") . variable_get(site_name, "drupal"); ?></title>
- <link rel="stylesheet" type="text/css" media="screen, projection" href="themes/unconed/unconed.css" />
- </head>
- <body<?php print theme_onload_attribute(); ?>>
- <table border="0" cellpadding="0" cellspacing="0" style="margin: auto; width: 100%;">
- <tr><td style="background-color: <?php print $this->cl00; ?>;"><img src="<?php print $this->path; ?>/images/null.gif" width="10" alt="" title="" /></td><td style="background-color: <?php print $this->clc0; ?>;"><img src="<?php print $this->path; ?>/images/null.gif" width="4" alt="" title="" /></td>
- <td style="background-color: <?php print $this->cl80; ?>;">
- <table border="0" cellpadding="0" cellspacing="9" style="background-color: <?php print $this->cl80; ?>;">
- <tr>
- <td colspan="2">
- <table border="0" cellspacing="0" cellpadding="0" style="background-color: <?php echo $this->brcolor1; ?>; width: 100%;"><tr><td style="text-align: center;"><table border="0" cellspacing="1" cellpadding="4" style="width: 100%;"><tr><td style="background-color: <?php echo $this->bgcolor2; ?>; text-align: center;"><a href="<?php print $base_url; ?>/"><img src="<?php print $this->path; ?>/images/logo.png" alt="logo" title="logo" /></a></td></tr></table></td></tr></table>
- </td>
- </tr>
- <tr>
- <td colspan="2" style="text-align: center;">
- <table border="0" cellspacing="0" cellpadding="0" style="background-color: <?php echo $this->brcolor1; ?>; width: 100%;"><tr><td style="text-align: center;"><table border="0" cellspacing="1" cellpadding="4" style="width: 100%;"><tr><td style="background-color: <?php echo $this->bgcolor2; ?>; text-align: center;"><?php print theme_links(link_page()); ?></td></tr></table></td></tr></table>
- </td>
- </tr>
- <tr><td colspan="2"><?php
- print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color: $this->brcolor1; width: 100%;\">";
- print "<tr><td>";
- print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" style=\"width: 100%;\">";
- print "<tr><td style=\"background-color: $this->bgcolor2; text-align: center;\"><div style=\"color: $this->fgcolor1;\"><img src=\"" . $this->path . "/images/null.gif\" width=\"2\" height=\"2\" alt=\"\" title=\"\"/></div></td></tr>";
- print "</table>";
- print "</td></tr></table>";
- ?></td></tr>
- <tr>
- <td valign="top" width="80%">
- <?php
- }
+function unconed_header($title = "") {
+ global $base_url;
+ $foreground = "#000000";
+ $background = "#ffffff";
- function node($node, $main = 0) {
+ $link = "#000000";
- print "\n<!-- node: \"$node->title\" -->\n";
- ?>
- <table border="0" cellpadding="0" cellspacing="0" style="background-color: <?php echo $this->brcolor1; ?>; width: 100%;">
- <tr><td>
- <table border="0" cellpadding="4" cellspacing="1" style="width: 100%;">
- <tr><td colspan="2" style="background-color: <?php echo $this->bgcolor1; ?>; width: 100%;"><table cellpadding="0" cellspacing="0" style="width: 100%;"><tr><td style="width: 100%;"><div style="color: <?php echo $this->fgcolor1; ?>;"><b><?php echo "$node->title"; ?></b></div></td><td style="vertical-align: middle; text-align: center;"><img src="<?php print $this->path; ?>/images/icon.gif" alt="" title="" /></td></tr></table></td></tr>
- <tr style="background-color: <?php echo $this->bgcolor2; ?>;">
- <?php
- if (module_exist("taxonomy")) {
- $terms = taxonomy_link("taxonomy terms", $node);
- }
- $taxo = theme_links($terms);
- print "<td style=\"background-color: $this->bgcolor2; width: 70%;\"><small>" . t("Submitted by %a on %b", array("%a" => format_name($node), "%b" => format_date($node->created, "large"))) . "</small></td><td style=\"background-color: $this->bgcolor2; width: 30%; text-align: center;\"><b>". $taxo ."</b>";
- ?>
- </td>
- </tr>
- <tr style="background-color: <?php echo $this->bgcolor2; ?>;">
- <td colspan="2" style="background-color: <?php echo $this->bgcolor2 ?>;">
- <?php
- if ($main && $node->teaser) {
- echo "<p>$node->teaser</p>";
- }
- else {
- echo "<p>$node->body</p>";
- }
- ?>
- </td>
- </tr>
- <?php
- if ($links = link_node($node, $main)) {
- echo "<tr style=\"background-color: ". $this->bgcolor3 .";\"><td style=\"background-color: ". $this->bgcolor3 ."; text-align: right;\" colspan=\"2\">[ ". theme_links($links) ." ]</td></tr>";
- }
- ?>
- </table></td></tr></table><br />
- <?php
- }
+ $cl80 = "#8f9399";
+ $clc0 = "#c8c8d0";
+ $cl00 = "#000000";
- function comment($comment, $link) {
- print "\n<!-- comment: \"$comment->subject\" by $comment->name -->\n";
+ // color set #1:
+ $brcolor1 = "#000000"; // border color
+ $bgcolor1 = "#b5bece";
+ $fgcolor1 = "#000000"; // table body color
+ $hlcolor1 = "#000000"; // high-light color
+ $sectioncolor = "#202020";
- ?>
- <table border="0" cellpadding="0" cellspacing="0" style="background-color: <?php echo $this->brcolor1; ?>; width: 100%;">
- <tr><td>
- <?php
-
- // create comment header:
- echo "<table border=\"0\" cellpadding=\"4\" cellspacing=\"1\" style=\"width: 100%;\">";
- echo " <tr style=\"background-color: $this->bgcolor1;\">";
- echo " <td style=\"background-color: $this->bgcolor1;\">";
- echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" style=\"width: 100%;\">";
-
- // subject:
- echo " <tr>";
- echo " <td style=\"text-align: right; width: 5%; vertical-align: top;\"><div style=\"color: $this->hlcolor1;\"><b>" . t("subject") . ":</b></div></td><td style=\"width: 80%;\">";
- echo " <b><div style=\"color: $this->fgcolor1;\">$comment->subject</div></b>";
- echo " </td>";
- echo " </tr>";
-
- // author:
- echo " <tr>";
- echo " <td style=\"text-align: right; vertical-align: top;\">" . t("author") . ":</td><td><b>" . format_name($comment) . "</b> ";
- echo " </td>";
- echo " </tr>";
-
- // date
- echo " <tr><td style=\"text-align: right;\">" . t("date") . ":</td><td>". format_date($comment->timestamp) ."</td></tr>";
-
- echo " </table>";
- echo " </td>";
- echo " </tr>";
-
- // print body of comment:
- if ($comment) echo " <tr><td style=\"background-color: $this->bgcolor2;\">$comment->comment</td></tr>";
-
- // print bottom link(s):
- echo " <tr><td style=\"background-color: $this->bgcolor3; text-align: right;\">[ $link ]</td></tr>";
- echo " </table>";
- ?></td></tr></table><br /><?php
- }
-
- function box($subject, $content, $region = "main") {
- ?>
- <table border="0" cellpadding="0" cellspacing="0" style="background-color: <?php echo $this->brcolor1; ?>; width: 100%;">
- <tr><td>
- <?php
+ // color set #2:
+ $bgcolor2 = "#eeeeee";
+ $fgcolor2 = "#000000";
- print "<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" style=\"width: 100%;\">";
- print " <tr><td style=\"background-color: $this->bgcolor1; text-align: center;\"><div style=\"color: $this->fgcolor1;\"><b>$subject</b></div></td></tr>";
- print " <tr><td style=\"background-color: $this->bgcolor2;\">$content</td></tr>";
- print "</table>";
+ // color set #3:
+ $bgcolor3 = "#d7d7d7";
+ $fgcolor3 = "#000000";
+ srand((double)microtime()*1000000);
+ ?>
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <?php print theme_head($main); ?>
+ <title><?php echo ($title ? ($title . " - ") : "") . variable_get(site_name, "drupal"); ?></title>
+ <link rel="stylesheet" type="text/css" media="screen, projection" href="themes/unconed/unconed.css" />
+ </head>
+ <body<?php print theme_onload_attribute(); ?>>
+ <table border="0" cellpadding="0" cellspacing="0" style="margin: auto; width: 100%;">
+ <tr><td style="background-color: <?php print $cl00; ?>;"><img src="<?php print path_to_theme(); ?>/images/null.gif" width="10" alt="" title="" /></td><td style="background-color: <?php print $clc0; ?>;"><img src="<?php print path_to_theme(); ?>/images/null.gif" width="4" alt="" title="" /></td>
+ <td style="background-color: <?php print $cl80; ?>;">
+ <table border="0" cellpadding="0" cellspacing="9" style="background-color: <?php print $cl80; ?>; width: 100%">
+ <tr>
+ <td colspan="2">
+ <table border="0" cellspacing="0" cellpadding="0" style="background-color: <?php echo $brcolor1; ?>; width: 100%;"><tr><td style="text-align: center;"><table border="0" cellspacing="1" cellpadding="4" style="width: 100%;"><tr><td style="background-color: <?php echo $bgcolor2; ?>; text-align: center;"><a href="<?php print $base_url; ?>/"><img src="<?php print path_to_theme(); ?>/images/logo.png" alt="logo" title="logo" /></a></td></tr></table></td></tr></table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" style="text-align: center;">
+ <table border="0" cellspacing="0" cellpadding="0" style="background-color: <?php echo $brcolor1; ?>; width: 100%;"><tr><td style="text-align: center;"><table border="0" cellspacing="1" cellpadding="4" style="width: 100%;"><tr><td style="background-color: <?php echo $bgcolor2; ?>; text-align: center;"><?php print theme("links", link_page()); ?></td></tr></table></td></tr></table>
+ </td>
+ </tr>
+ <tr><td colspan="2"><?php
+ print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color: $brcolor1; width: 100%;\">";
+ print "<tr><td>";
+ print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" style=\"width: 100%;\">";
+ print "<tr><td style=\"background-color: $bgcolor2; text-align: center;\"><div style=\"color: $fgcolor1;\"><img src=\"" . path_to_theme() . "/images/null.gif\" width=\"2\" height=\"2\" alt=\"\" title=\"\"/></div></td></tr>";
+ print "</table>";
+ print "</td></tr></table>";
+ ?></td></tr>
+ <tr>
+ <td valign="top" width="80%">
+ <?php
+}
+
+function unconed_node($node, $main = 0) {
+ $foreground = "#000000";
+ $background = "#ffffff";
+
+ $link = "#000000";
- ?>
- </td></tr>
- </table><br />
- <?php
+ $cl80 = "#8f9399";
+ $clc0 = "#c8c8d0";
+ $cl00 = "#000000";
- }
+ // color set #1:
+ $brcolor1 = "#000000"; // border color
+ $bgcolor1 = "#b5bece";
+ $fgcolor1 = "#000000"; // table body color
+ $hlcolor1 = "#000000"; // high-light color
+ $sectioncolor = "#202020";
- function footer() {
- ?>
- </td>
- <td valign="top" width="20%">
+ // color set #2:
+ $bgcolor2 = "#eeeeee";
+ $fgcolor2 = "#000000";
+
+ // color set #3:
+ $bgcolor3 = "#d7d7d7";
+ $fgcolor3 = "#000000";
+ print "\n<!-- node: \"$node->title\" -->\n";
+ ?>
+ <table border="0" cellpadding="0" cellspacing="0" style="background-color: <?php echo $brcolor1; ?>; width: 100%;">
+ <tr><td>
+ <table border="0" cellpadding="4" cellspacing="1" style="width: 100%;">
+ <tr><td colspan="2" style="background-color: <?php echo $bgcolor1; ?>; width: 100%;"><table cellpadding="0" cellspacing="0" style="width: 100%;"><tr><td style="width: 100%;"><div style="color: <?php echo $fgcolor1; ?>;"><b><?php echo "$node->title"; ?></b></div></td><td style="vertical-align: middle; text-align: center;"><img src="<?php print path_to_theme(); ?>/images/icon.gif" alt="" title="" /></td></tr></table></td></tr>
+ <tr style="background-color: <?php echo $bgcolor2; ?>;">
<?php
- theme_blocks("all", $this);
+ if (module_exist("taxonomy")) {
+ $terms = taxonomy_link("taxonomy terms", $node);
+ }
+ $taxo = theme("links", $terms);
+ print "<td style=\"background-color: $bgcolor2; width: 70%;\"><small>" . t("Submitted by %a on %b", array("%a" => format_name($node), "%b" => format_date($node->created, "large"))) . "</small></td><td style=\"background-color: $bgcolor2; width: 30%; text-align: center;\"><b>". $taxo ."</b>";
?>
- </td>
+ </td>
</tr>
- <tr><td colspan="2"><?php
- print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color: $this->brcolor1; width: 100%;\">";
- print "<tr><td>";
- print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" style=\"width: 100%;\">";
- print "<tr><td style=\"background-color: $this->bgcolor2; text-align: center;\"><div style=\"color: $this->fgcolor1;\"><img src=\"" . $this->path . "/images/null.gif\" width=\"2\" height=\"2\" alt=\"\" title=\"\" /></div></td></tr>";
- print "</table>";
- print "</td></tr></table>";
- ?></td></tr>
- <tr>
- <td colspan="2">
- <table border="0" cellspacing="0" cellpadding="0" style="background-color: <?php echo $this->brcolor1; ?>; width: 100%;"><tr><td style="text-align: center;"><table border="0" cellspacing="1" cellpadding="4" style="width: 100%;"><tr><td style="background-color: <?php echo $this->bgcolor2; ?>; text-align: center;"><?php print theme_links(link_page()); ?></td></tr></table></td></tr></table>
- </td>
+ <tr style="background-color: <?php echo $bgcolor2; ?>;">
+ <td colspan="2" style="background-color: <?php echo $bgcolor2 ?>;">
+ <?php
+ if ($main && $node->teaser) {
+ echo "<p>$node->teaser</p>";
+ }
+ else {
+ echo "<p>$node->body</p>";
+ }
+ ?>
+ </td>
</tr>
- </table>
- </td><td style="background-color: <?php print $this->clc0; ?>;"><img src="<?php print $this->path; ?>/images/null.gif" width="4" alt="" title="" /></td><td style="background-color: <?php print $this->cl00; ?>;"><img src="<?php print $this->path; ?>/images/null.gif" width="10" alt="" title="" /></td></tr>
- </table>
- <?php print theme_closure(); ?>
- </body>
- </html>
+ <?php
+ if ($links = link_node($node, $main)) {
+ echo "<tr style=\"background-color: ". $bgcolor3 .";\"><td style=\"background-color: ". $bgcolor3 ."; text-align: right;\" colspan=\"2\">[ ". theme("links", $links) ." ]</td></tr>";
+ }
+ ?>
+ </table></td></tr></table><br />
<?php
- }
- }
+}
+
+function unconed_comment($comment, $link) {
+ $foreground = "#000000";
+ $background = "#ffffff";
+
+ $cl80 = "#8f9399";
+ $clc0 = "#c8c8d0";
+ $cl00 = "#000000";
+
+ // color set #1:
+ $brcolor1 = "#000000"; // border color
+ $bgcolor1 = "#b5bece";
+ $fgcolor1 = "#000000"; // table body color
+ $hlcolor1 = "#000000"; // high-light color
+ $sectioncolor = "#202020";
+
+ // color set #2:
+ $bgcolor2 = "#eeeeee";
+ $fgcolor2 = "#000000";
+
+ // color set #3:
+ $bgcolor3 = "#d7d7d7";
+ $fgcolor3 = "#000000";
+
+ print "\n<!-- comment: \"$comment->subject\" by $comment->name -->\n";
+
+ ?>
+ <table border="0" cellpadding="0" cellspacing="0" style="background-color: <?php echo $brcolor1; ?>; width: 100%;">
+ <tr><td>
+ <?php
+
+ // create comment header:
+ echo "<table border=\"0\" cellpadding=\"4\" cellspacing=\"1\" style=\"width: 100%;\">";
+ echo " <tr style=\"background-color: $bgcolor1;\">";
+ echo " <td style=\"background-color: $bgcolor1;\">";
+ echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" style=\"width: 100%;\">";
+ // subject:
+ echo " <tr>";
+ echo " <td style=\"text-align: right; width: 5%; vertical-align: top;\"><div style=\"color: $hlcolor1;\"><b>" . t("subject") . ":</b></div></td><td style=\"width: 80%;\">";
+ echo " <b><div style=\"color: $fgcolor1;\">$comment->subject</div></b>";
+ echo " </td>";
+ echo " </tr>";
+
+ // author:
+ echo " <tr>";
+ echo " <td style=\"text-align: right; vertical-align: top;\">" . t("author") . ":</td><td><b>" . format_name($comment) . "</b> ";
+ echo " </td>";
+ echo " </tr>";
+
+ // date
+ echo " <tr><td style=\"text-align: right;\">" . t("date") . ":</td><td>". format_date($comment->timestamp) ."</td></tr>";
+
+ echo " </table>";
+ echo " </td>";
+ echo " </tr>";
+
+ // print body of comment:
+ if ($comment) echo " <tr><td style=\"background-color: $bgcolor2;\">$comment->comment</td></tr>";
+
+ // print bottom link(s):
+ echo " <tr><td style=\"background-color: $bgcolor3; text-align: right;\">[ $link ]</td></tr>";
+ echo " </table>";
+ ?></td></tr></table><br /><?php
+}
+function unconed_block($block) {
+ return unconed_box($block->subject, $block->content);
+}
+
+function unconed_box($subject, $content, $region = "main") {
+ $foreground = "#000000";
+ $background = "#ffffff";
+
+ $link = "#000000";
+
+ $cl80 = "#8f9399";
+ $clc0 = "#c8c8d0";
+ $cl00 = "#000000";
+
+ // color set #1:
+ $brcolor1 = "#000000"; // border color
+ $bgcolor1 = "#b5bece";
+ $fgcolor1 = "#000000"; // table body color
+ $hlcolor1 = "#000000"; // high-light color
+ $sectioncolor = "#202020";
+
+ // color set #2:
+ $bgcolor2 = "#eeeeee";
+ $fgcolor2 = "#000000";
+
+ // color set #3:
+ $bgcolor3 = "#d7d7d7";
+ $fgcolor3 = "#000000";
+ ?>
+ <table border="0" cellpadding="0" cellspacing="0" style="background-color: <?php echo $brcolor1; ?>; width: 100%;">
+ <tr><td>
+ <?php
+
+ print "<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" style=\"width: 100%;\">";
+ print " <tr><td style=\"background-color: $bgcolor1; text-align: center;\"><div style=\"color: $fgcolor1;\"><b>$subject</b></div></td></tr>";
+ print " <tr><td style=\"background-color: $bgcolor2;\">$content</td></tr>";
+ print "</table>";
+
+ ?>
+ </td></tr>
+ </table><br />
+ <?php
+
+}
+
+function unconed_footer() {
+ $foreground = "#000000";
+ $background = "#ffffff";
+
+ $link = "#000000";
+
+ $cl80 = "#8f9399";
+ $clc0 = "#c8c8d0";
+ $cl00 = "#000000";
+
+ // color set #1:
+ $brcolor1 = "#000000"; // border color
+ $bgcolor1 = "#b5bece";
+ $fgcolor1 = "#000000"; // table body color
+ $hlcolor1 = "#000000"; // high-light color
+ $sectioncolor = "#202020";
+
+ // color set #2:
+ $bgcolor2 = "#eeeeee";
+ $fgcolor2 = "#000000";
+
+ // color set #3:
+ $bgcolor3 = "#d7d7d7";
+ $fgcolor3 = "#000000";
+ ?>
+ </td>
+ <td valign="top" width="20%">
+ <?php
+ print render_blocks("all", $this);
+ ?>
+ </td>
+ </tr>
+ <tr><td colspan="2"><?php
+ print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color: $brcolor1; width: 100%;\">";
+ print "<tr><td>";
+ print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" style=\"width: 100%;\">";
+ print "<tr><td style=\"background-color: $bgcolor2; text-align: center;\"><div style=\"color: $fgcolor1;\"><img src=\"" . path_to_theme() . "/images/null.gif\" width=\"2\" height=\"2\" alt=\"\" title=\"\" /></div></td></tr>";
+ print "</table>";
+ print "</td></tr></table>";
+ ?></td></tr>
+ <tr>
+ <td colspan="2">
+ <table border="0" cellspacing="0" cellpadding="0" style="background-color: <?php echo $brcolor1; ?>; width: 100%;"><tr><td style="text-align: center;"><table border="0" cellspacing="1" cellpadding="4" style="width: 100%;"><tr><td style="background-color: <?php echo $bgcolor2; ?>; text-align: center;"><?php print theme("links", link_page()); ?></td></tr></table></td></tr></table>
+ </td>
+ </tr>
+ </table>
+ </td><td style="background-color: <?php print $clc0; ?>;"><img src="<?php print path_to_theme(); ?>/images/null.gif" width="4" alt="" title="" /></td><td style="background-color: <?php print $cl00; ?>;"><img src="<?php print path_to_theme(); ?>/images/null.gif" width="10" alt="" title="" /></td></tr>
+ </table>
+ <?php print theme_closure(); ?>
+ </body>
+ </html>
+ <?php
+}
?>
diff --git a/themes/xtemplate/xtemplate.theme b/themes/xtemplate/xtemplate.theme
index d706541b4..a24149fef 100644
--- a/themes/xtemplate/xtemplate.theme
+++ b/themes/xtemplate/xtemplate.theme
@@ -1,9 +1,6 @@
<?php
// $Id$
-class Theme_xtemplate extends BaseTheme {
-}
-
if (!class_exists("XTemplate")) {
include_once("themes/xtemplate/xtemplate.inc");
}
@@ -121,10 +118,10 @@ function xtemplate_header($title = "") {
ob_start();
if ($xtemplate->sidebar == "left") {
- theme_blocks("all");
+ print render_blocks("all");
}
else if ($xtemplate->sidebar == "both") {
- theme_blocks("left");
+ print render_blocks("left");
}
if ($blocks = ob_get_contents()) {
@@ -171,10 +168,10 @@ function xtemplate_footer() {
ob_start();
if ($xtemplate->sidebar == "right") {
- theme_blocks("all");
+ print render_blocks("all");
}
else if ($xtemplate->sidebar == "both") {
- theme_blocks("right");
+ print render_blocks("right");
}
if ($blocks = ob_get_contents()) {