Skip to content
Snippets Groups Projects
Commit fa447981 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Moving theme marvin to the contributions repository. Will be replaced by pusbutton?

parent 634893f2
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
themes/marvin/images/bullet.png

210 B

themes/marvin/images/logo.png

8.08 KiB

/* $Id$ */
body {
margin: 10px;
color: #000000;
background-color: #fff;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 76%;
}
a:link {
color: #656
}
a:visited {
color: #656
}
a:active {
color: #ccc
}
h1 {
font-size: 1.2em;
}
h2 {
background-color: #eaeaea;
border: solid 1px #777;
font-size: 1.1em;
margin: 0.5em 0em 0.5em 0em;
padding: 0.5em;
}
h3, h4, h5, h6 {
font-size: 1em;
}
table {
width: 100%;
}
p {
margin: 0 1em 1em 0;
padding: 0;
}
table {
font-size: 1em;
}
#help {
font-size: 0.9em;
margin-bottom: 1em;
}
.calendar .day-today {
background-color: #ccc;
}
.calendar .day-selected {
background-color: #bbb;
}
.calendar .header-month {
background-color: #ddd;
}
.calendar .header-week {
background-color: #ccc;
}
.calendar .day-blank {
background-color: #ddd;
}
.calendar .day-link a {
color: #000;
}
.calendar .row-week {
color: #aaa;
}
.item-list ul li {
list-style-image: url(images/bullet.png);
}
.path, .path a, .path a:visited {
color: #888;
}
.block {
margin-bottom: 10px;
font-size: 0.9em;
}
.block h2.title {
margin: 0;
}
.block .content {
border: solid 1px #777;
border-top: none;
margin: 0;
padding: 5px;
}
.message {
margin-bottom: 1em;
}
.node h2.title {
background-color: #fff;
border: solid 1px #999;
margin-top: 1em;
}
.node .submitted {
color: #7c7c7c;
font-size: 0.9em;
float: left;
padding: 0.5em 0em 0.5em 1em;
}
.node .taxonomy {
color: #7c7c7c;
font-size: 0.9em;
float: right;
}
.node .content {
clear: both;
padding-left: 1em;
}
.node .links {
padding: 1em;
}
<?php
// $Id$
function marvin_help($section) {
$output = "";
switch ($section) {
case 'admin/system/themes#description':
$output = t("A PHP theme");
break;
}
return $output;
}
function marvin_page($content, $title = NULL, $breadcrumb = NULL) {
if (isset($title)) {
drupal_set_title($title);
}
if (isset($breadcrumb)) {
drupal_set_breadcrumb($breadcrumb);
}
$output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
$output .= "<html>\n";
$output .= "<head>\n";
$output .= drupal_get_html_head();
$output .= "<title>";
if ($title = drupal_get_title()) {
$output .= "$title - ". variable_get("site_name", "drupal");
}
else {
$output .= variable_get("site_name", "drupal");
$output .= ($slogan = variable_get("site_slogan", "")) ? " - $slogan" : "";
}
$output .= "</title>\n";
$output .= "<style type=\"text/css\">\n @import \"themes/marvin/marvin.css\";\n</style>\n";
$output .= "</head>\n";
$output .= "<body ". theme_onload_attribute() .">\n";
$output .= "<table border=\"0\" style=\"width: 100%\" cellpadding=\"8\" cellspacing=\"0\">\n";
$output .= " <tr>\n";
$output .= " <td><a href=\"". url() ."\"><img src=\"". path_to_theme() ."/images/logo.png\" style=\"border: 0px;\" alt=\"\" title=\"\" /></a></td>\n";
$output .= " <td>&nbsp;</td>\n";
$output .= " </tr>\n";
$output .= " <tr>\n";
$output .= " <td colspan=\"2\" style=\"text-align: right;\">". theme("links", link_page()) ."</td>\n";
$output .= " </tr>\n";
$output .= "</table>\n";
$output .= "<table border=\"0\" style=\"width: 100%\" cellpadding=\"8\" cellspacing=\"0\">\n";
$output .= " <tr>\n";
$blocks = theme("blocks", "left");
if ($blocks) {
$output .= " <td style=\"width: 200px; vertical-align: top;\">\n";
$output .= $blocks;
$output .= " </td>\n";
}
$output .= " <td style=\"vertical-align: top; width: 85%;\">\n";
if ($title = drupal_get_title()) {
$output .= theme("breadcrumb", drupal_get_breadcrumb());
$output .= "<h2>$title</h2>";
}
if ($help = menu_get_active_help()) {
$output .= "<small>$help</small><hr />";
}
foreach (drupal_get_messages() as $message) {
list($message, $type) = $message;
$output .= "<strong>". t("Status") ."</strong>: $message<hr />";
}
$output .= "\n<!-- begin content -->\n";
$output .= $content;
$output .= "\n<!-- end content -->\n";
$output .= " </td>\n";
$blocks = theme("blocks", "right");
if ($blocks) {
$output .= " <td style=\"width: 200px; vertical-align: top;\">\n";
$output .= $blocks;
$output .= " </td>\n";
}
$output .= " </tr>\n</table>";
$output .= "<table border=\"0\" style=\"width: 100%\" cellpadding=\"8\" cellspacing=\"0\">\n";
$output .= " <tr>\n";
$output .= " <td colspan=\"2\" style=\"text-align: center;\">";
$output .= "<p>". theme("links", link_page()) ."</p><p>". variable_get("site_footer", "") ."</p>\n";
$output .= " </td>\n";
$output .= " </tr>\n";
$output .= "</table>\n";
$output .= theme_closure();
$output .= "</body>\n</html>\n";
return $output;
}
function marvin_node($node, $main = 0, $page = 0) {
$output = "<div class=\"node\">\n";
if (!$page) {
$output .= "<h2 class=\"title\">". l($node->title, "node/view/$node->nid") ."</h2>\n";
}
$output .= "<div class=\"submitted\">". t("Submitted by %a on %b", array("%a" => format_name($node), "%b" => format_date($node->created, "large"))) ."</div>";
if (module_exist("taxonomy") && ($taxonomy = taxonomy_link("taxonomy terms", $node))) {
$output .= "<div class=\"taxonomy\">". theme("links", $taxonomy) ."</div>";
}
$output .= "<div class=\"content\">";
if ($main && $node->teaser) {
$output .= $node->teaser;
}
else {
$output .= $node->body;
}
$output .= "</div>\n";
if ($links = link_node($node, $main)) {
$output .= "<div class=\"links\">". theme("links", $links) ."</div>\n";
}
$output .= "</div>\n";
return $output;
}
function marvin_comment($comment, $link = "") {
// Create comment header:
$output = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color: #000000; width: 100%;\">\n";
$output .= " <tr style=\"background-color: #000000;\">\n";
$output .= " <td>\n";
$output .= " <table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" style=\"width: 100%;\">\n";
$output .= " <tr>\n";
$output .= " <td style=\"background-color: #eaeaea;\">\n";
$output .= " <table border=\"0\" cellpadding=\"2\" cellspacing=\"1\" style=\"width: 100%;\">\n";
$output .= " <tr>\n";
// Subject:
$output .= " <td style=\"text-align: right; width: 5%;\"><strong>". t("Subject") .":</strong></td>\n";
$output .= " <td style=\"width: 80%;\"><strong><div style=\"color: #666699;\">$comment->subject</div></strong></td>\n";
$output .= " </tr>\n";
// Author:
$output .= " <tr>\n";
$output .= " <td style=\"text-align: right; vertical-align: top;\">". t("Author") .":</td><td>". format_name($comment) ."</td>\n";
$output .= " </tr>\n";
// Date
$output .= " <tr>\n";
$output .= " <td style=\"text-align: right;\">". t("Date") .":</td><td>". format_date($comment->timestamp) ."</td>\n";
$output .= " </tr>\n";
$output .= " </table>\n";
$output .= " </td>\n";
$output .= " </tr>\n";
// Print body of comment:
if ($comment->comment) {
$output .= " <tr><td style=\"background-color: #ffffff;\">$comment->comment</td></tr>\n";
}
// Print bottom link(s):
$output .= " <tr><td style=\"background-color: #eaeaea; text-align: right;\">$link</td></tr>\n";
$output .= " </table>\n";
$output .= " </td>\n";
$output .= " </tr>\n";
$output .= "</table>\n";
$output .= "<br />\n\n";
return $output;
}
function marvin_links($links, $delimiter = " &middot; ") {
return implode($delimiter, $links);
}
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment