Commit 632bb2ac authored by Dries's avatar Dries
Browse files

- Moved theme UnConeD to the contributions repository.
parent 801dd782
/* $Id$ */
body {
margin: 10px;
color: #000000;
background-color: #c8c8d0;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 76%;
}
h1 {
font-size: 1.2em;
}
h2 {
font-size: 1.1em;
}
h3, h4, h5, h6 {
font-size: 1em;
}
p {
margin: 0 0 1em 0;
padding: 0;
}
img {
border-width: 0;
}
table {
font-size: 1em;
}
a:link { color: #404040 }
a:visited { color: #404040 }
a:active { color: #000000 }
.calendar a {
text-decoration: none;
}
.calendar td {
padding: 0;
border-color: #aaa;
}
.calendar td div {
padding: 0.4em 0;
}
.calendar .row-week td a {
padding: 0.4em 0;
background-color: #b5bece;
}
.calendar .day-today {
background-color: #000;
color: #fff;
}
.calendar .day-today a {
color: #fff;
}
.calendar .day-selected {
background-color: #369;
color: #fff;
}
.calendar .header-month {
background-color: #bbb;
}
.calendar .header-week {
background-color: #ccc;
}
.calendar .day-blank {
background-color: #ddd;
}
.calendar .row-week td a:hover {
background-color: #fff; color: #000;
}
<?php
// $Id$
function unconed_help($section) {
$ouptout = "";
switch ($section) {
case 'admin/system/themes#description':
$output = t("Internet Explorer, Mozilla, Opera");
break;
}
return $output;
}
function unconed_header() {
global $base_url;
$title = drupal_get_title();
$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";
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
print theme("breadcrumb", drupal_get_breadcrumb());
print "<h1>" . drupal_get_title() . "</h1>";
if ($help = menu_get_active_help()) {
print "<small>$help</small><hr />";
}
if ($message = drupal_get_message()) {
$output .= "<b>". t("Status") ."</b>: ". $message->message ."<hr />";
}
}
function unconed_node($node, $main = 0, $page = 0) {
$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";
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%;">
<?php
if ($page == 0) {
?>
<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>
<?php
}
?>
<tr style="background-color: <?php echo $bgcolor2; ?>;">
<?php
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>
</tr>
<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>
<?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 theme("blocks", "all");
?>
</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
}
?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment