Commit 38969b48 authored by webchick's avatar webchick

#315533 by JohnAlbin and catch: Remove all core themes but Garland and Stark....

#315533 by JohnAlbin and catch: Remove all core themes but Garland and Stark. Yay for making Drupal 75% more palatable to designers. These themes can be found in contrib thanks to the venerable John Wilkins. :)
parent 78027e1a
......@@ -75,7 +75,10 @@ Drupal 7.0, xxxx-xx-xx (development version)
allowing Drupal to lazy-load code as needed, resulting in significant performance
and memory improvements.
- Theme system:
* Converted the 'bluemarine' theme to a tableless layout.
* Removed the Bluemarine, Chameleon and Pushbutton themes. These themes live
on as contributed themes (http://drupal.org/project/bluemarine,
http://drupal.org/project/chameleon and http://drupal.org/project/pushbutton).
* Added Stark theme to make analyzing Drupal's default HTML and CSS easier.
- File handling:
* Files are now first class Drupal objects with file_load(), file_save(),
and file_validate() functions and corresponding hooks.
......
......@@ -166,8 +166,8 @@ class NonDefaultBlockAdmin extends DrupalWebTestCase {
function testNonDefaultBlockAdmin() {
$admin_user = $this->drupalCreateUser(array('administer blocks', 'administer site configuration'));
$this->drupalLogin($admin_user);
$this->drupalPost('admin/build/themes', array('status[bluemarine]' => 1), t('Save configuration'));
$this->drupalGet('admin/build/block/list/bluemarine');
$this->assertRaw('bluemarine/style.css', t('Bluemarine CSS found'));
$this->drupalPost('admin/build/themes', array('status[stark]' => 1), t('Save configuration'));
$this->drupalGet('admin/build/block/list/stark');
$this->assertRaw('stark/layout.css', t('Stark CSS found'));
}
}
<?php
// $Id$
?>
<div class="block block-<?php print $block->module; ?>" id="block-<?php print $block->module; ?>-<?php print $block->delta; ?>">
<h2 class="title"><?php print $block->subject; ?></h2>
<div class="content"><?php print $block->content; ?></div>
</div>
; $Id$
name = Bluemarine
description = Tableless theme with a marine and ash color scheme.
version = VERSION
core = 7.x
engine = phptemplate
<?php
// $Id$
?>
<div class="box">
<?php if ($title) { ?><h2 class="title"><?php print $title; ?></h2><?php } ?>
<div class="content"><?php print $content; ?></div>
</div>
<?php
// $Id$
?>
<div class="comment<?php print ' ' . $status; ?>">
<?php if ($picture) {
print $picture;
} ?>
<h3 class="title"><?php print $title; ?></h3><?php if ($new != '') { ?><span class="new"><?php print $new; ?></span><?php } ?>
<div class="submitted"><?php print $submitted; ?></div>
<div class="content">
<?php print $content; ?>
<?php if ($signature): ?>
<div class="clearfix">
<div></div>
<?php print $signature ?>
</div>
<?php endif; ?>
</div>
<div class="links">&raquo; <?php print $links; ?></div>
</div>
<?php
// $Id$
?>
<div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
<?php if ($picture) {
print $picture;
}?>
<?php if ($page == 0) { ?><h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2><?php }; ?>
<span class="submitted"><?php print $submitted?></span>
<div class="taxonomy"><?php print $terms?></div>
<div class="content"><?php print $content?></div>
<?php if ($links) { ?><div class="links">&raquo; <?php print $links?></div><?php }; ?>
<?php print $comments; ?>
</div>
<?php
// $Id$
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>"
<?php print $rdf_namespaces ?>>
<head profile="<?php print $grddl_profile ?>">
<title><?php print $head_title ?></title>
<?php print $head ?>
<?php print $styles ?>
<?php print $scripts ?>
<script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
</head>
<body class="<?php print $body_classes; ?>">
<div id="header" class="clearfix">
<?php if ($search_box) { ?><div class="search-box"><?php print $search_box ?></div><?php }; ?>
<?php if ($logo) { ?><a class="logo" href="<?php print $front_page ?>" title="<?php print t('Home') ?>"><img src="<?php print $logo ?>" alt="<?php print t('Home') ?>" /></a><?php } ?>
<?php if ($site_name) { ?><h1 class='site-name'><a href="<?php print $front_page ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a></h1><?php }; ?>
<?php if ($site_slogan) { ?><div class='site-slogan'><?php print $site_slogan ?></div><?php } ?>
<div id="menu">
<?php if (isset($secondary_menu)) { ?><?php print theme('links', $secondary_menu, array('class' => 'links', 'id' => 'subnavlist')); ?><?php } ?>
<?php if (isset($main_menu)) { ?><?php print theme('links', $main_menu, array('class' => 'links', 'id' => 'navlist')) ?><?php } ?>
</div>
<div id="header-region"><?php print $header ?></div>
</div>
<div class="layout-columns">
<?php if ($left) { ?><div id="sidebar-left" class="column"><?php print $left ?></div><?php } ?>
<div id="main" class="column">
<?php if ($mission) { ?><div id="mission"><?php print $mission ?></div><?php } ?>
<div class="inner">
<?php print $breadcrumb ?>
<h1 class="title"><?php print $title ?></h1>
<?php if ($tabs) { ?><div class="tabs"><?php print $tabs ?></div><?php } ?>
<?php print $help ?>
<?php if ($show_messages) { print $messages; } ?>
<?php print $content; ?>
<?php print $feed_icons; ?>
</div>
</div>
<?php if ($right) { ?><div id="sidebar-right" class="column"><?php print $right ?></div><?php } ?>
</div>
<div id="footer">
<?php print $footer_message ?>
<?php print $footer ?>
</div>
<?php print $closure ?>
</body>
</html>
/* $Id$ */
body {
direction: rtl;
}
.layout-columns .column {
float: right;
}
#sidebar-left, #sidebar-right {
margin-right: 0;
margin-left: -18em;
}
#sidebar-left {
right: -18em;
}
.logo {
float: right;
}
.search-box {
float: left; /* LTR */
}
#menu {
padding: 0.5em 0.5em 0 0.5em;
text-align: left;
}
#navlist {
padding: 0 0 1.2em 0.8em;
}
#subnavlist {
padding: 0.5em 0 0.4em 1.2em;
}
ul.links li {
border-right: 1px solid #9cf;
border-left: none;
}
.block, .box {
padding: 0 1.5em 0 0;
}
.node .taxonomy {
padding-right: 1.5em;
}
.node .picture {
float: left;
}
.comment .new {
text-align: left;
float: left;
}
.comment .picture {
float: left;
}
/* $Id$ */
/*
** HTML elements
*/
body {
margin: 0;
padding: 0;
color: #000;
background-color: #fff;
font: 76% Verdana, Arial, Helvetica, sans-serif;
}
tr.odd td, tr.even td {
padding: 0.3em;
}
h1, h2, h3, h4, h5, h6 {
margin-bottom: 0.5em;
}
h1 {
font-size: 1.3em;
}
h2 {
font-size: 1.2em;
}
h3, h4, h5, h6 {
font-size: 1.1em;
}
p {
margin-top: 0.5em;
margin-bottom: 0.9em;
}
a {
text-decoration: none;
font-weight: bold;
}
a:link {
color: #39c;
}
a:visited {
color: #369;
}
a:hover {
color: #39c;
text-decoration: underline;
}
fieldset {
border: 1px solid #ccc;
}
pre {
background-color: #eee;
padding: 0.75em 1.5em;
font-size: 12px;
border: 1px solid #ddd;
}
.form-item label {
font-size: 1em;
color: #222;
}
.item-list .title {
font-size: 1em;
color: #222;
}
.links {
margin-bottom: 0;
}
.comment .links {
margin-bottom: 0;
}
/*
** Page layout blocks / IDs
*/
body {
min-width: 56em;
/* Background color needed to fill the sidebars for the length of the page. */
background-color: #ddd;
}
.layout-columns {
padding: 0 18em;
}
.sidebar-left .layout-columns {
padding-right: 0;
}
.sidebar-right .layout-columns {
padding-left: 0;
}
.layout-columns .column {
position: relative;
float: left; /* LTR */
}
#main {
width: 100%;
background-color: #fff;
}
#main .inner {
padding: 1em 1.5em 3em 1.5em;
}
#sidebar-left, #sidebar-right {
width: 16em;
padding: 1em;
margin-right: -18em; /* LTR */
background-color: #ddd;
}
#sidebar-left {
right: 18em; /* LTR */
}
#header {
padding: .2em;
background-color: #69c;
}
.logo {
float: left; /* LTR */
padding: 0 1em;
border: 0;
}
.site-name {
margin: 0.6em 0 0 ;
font-size: 2em;
white-space: nowrap;
}
.site-name a:link, .site-name a:visited {
color: #fff;
}
.site-name a:hover {
color: #369;
text-decoration: none;
}
.site-slogan {
font-size: 1em;
color: #eee;
display: block;
margin: 0;
font-style: italic;
font-weight: bold;
}
.search-box {
float: right; /* LTR */
margin: 1em;
}
#menu {
padding: 0.5em 0.5em 0 0.5em; /* LTR */
text-align: right; /* LTR */
vertical-align: middle;
}
#header-region {
clear: both;
}
#navlist {
font-size: 1.0em;
padding: 0 0.8em 0.5em 0; /* LTR */
color: #9cf;
}
#navlist a {
font-weight: bold;
color: #fff;
}
#subnavlist {
padding: 0.5em 1.2em 0.4em 0; /* LTR */
font-size: 0.8em;
color: #9cf;
}
#subnavlist a {
font-weight: bold;
color: #9cf;
}
ul.links li {
border-left: 1px solid #9cf; /* LTR */
}
ul.links li.first {
border: none;
}
#search .form-text, #search .form-submit {
border: 1px solid #369;
font-size: 1.1em;
height: 1.5em;
vertical-align: middle;
}
#search .form-text {
width: 8em;
padding: 0 0.5em;
}
#mission {
background-color: #369;
padding: 1.5em 2em;
color: #fff;
}
#mission a, #mission a:visited {
color: #9cf;
font-weight: bold;
}
#mission, .node .content, .comment .content {
line-height: 1.4em;
}
#help {
font-size: 0.9em;
margin-bottom: 1em;
}
.breadcrumb {
margin-bottom: .5em;
}
.messages {
background-color: #eee;
border: 1px solid #ccc;
padding: 0.3em;
margin-bottom: 1em;
}
.error {
border-color: red;
}
#footer {
background-color: #eee;
padding: 1em;
font-size: 0.8em;
clear: both;
}
/*
** Common declarations for child classes of node, comment, block, box, etc.
** If you want any of them styled differently for a specific parent, add
** additional rules /with only the differing properties!/ to .parent .class.
** See .comment .title for an example.
*/
.title, .title a {
font-weight: bold;
font-size: 1.3em;
color: #777;
margin: 0 auto; /* decrease default margins for h<x>.title */
}
.submitted {
color: #999;
font-size: 0.8em;
}
.links {
color: #999;
}
.links a {
font-weight: bold;
}
.block, .box {
padding: 0 0 1.5em 0; /* LTR */
}
.block {
border-bottom: 1px solid #bbb;
padding-bottom: 0.75em;
margin-bottom: 1.5em;
}
.block .title {
margin-bottom: .25em;
}
.box .title {
font-size: 1.1em;
}
.node {
margin: .5em 0 2em; /* LTR */
}
.sticky {
padding: .5em;
background-color: #eee;
border: solid 1px #ddd;
}
.node .content, .comment .content {
margin: .5em 0 .5em;
}
.node .taxonomy {
color: #999;
font-size: 0.8em;
padding-left: 1.5em; /* LTR */
}
.node .picture {
border: 1px solid #ddd;
float: right; /* LTR */
margin: 0.5em;
}
.comment {
border: 1px solid #abc;
padding: .5em;
margin-bottom: 1em;
}
.comment .title a {
font-size: 1.1em;
font-weight: normal;
}
.comment .new {
text-align: right; /* LTR */
font-weight: bold;
font-size: 0.8em;
float: right; /* LTR */
color: red;
}
.comment .picture {
border: 1px solid #abc;
float: right; /* LTR */
margin: 0.5em;
}
/*
** Module specific styles
*/
#aggregator .feed-source {
background-color: #eee;
border: 1px solid #ccc;
padding: 1em;
margin: 1em 0;
}
#aggregator .news-item .categories, #aggregator .source, #aggregator .age {
color: #999;
font-style: italic;
font-size: 0.9em;
}
#aggregator .title {
margin-bottom: 0.5em;
font-size: 1em;
}
#aggregator h3 {
margin-top: 1em;
}
#forum table {
width: 100%;
}
#forum td {
padding: 0.5em;
}
#forum td.forum, #forum td.posts {
background-color: #eee;
}
#forum td.topics, #forum td.last-reply {
background-color: #ddd;
}
#forum td.container {
background-color: #ccc;
}
#forum td.container a {
color: #555;
}
#forum td.statistics, #forum td.settings, #forum td.pager {
height: 1.5em;
border: 1px solid #bbb;
}
#forum td .name {
color: #96c;
}
#forum td .links {
padding-top: 0.7em;
font-size: 0.9em;
}
#profile .profile {
clear: both;
border: 1px solid #abc;
padding: .5em;
margin: 1em 0em;
}
#profile .profile .name {
padding-bottom: 0.5em;
}
.block-forum h3 {
margin-bottom: .5em;
}
div.admin-panel .description {
color: #999;
}
div.admin-panel .body {
background: #f4f4f4;
}
div.admin-panel h3 {
background-color: #69c;
color: #fff;
padding: 5px 8px 5px;
margin: 0;
}
; $Id$
name = Chameleon
description = Minimalist tabled theme with light colors.
regions[left] = Left sidebar
regions[right] = Right sidebar
features[] = logo
features[] = favicon
features[] = name
features[] = slogan
stylesheets[all][] = style.css
stylesheets[all][] = common.css
version = VERSION
core = 7.x
<?php
// $Id$
/**
* @file
* A slim, CSS-driven theme which does not depend on a template engine like phptemplate
*/
/**
* Implementation of hook_theme. Auto-discover theme functions.
*/
function chameleon_theme($existing, $type, $theme, $path) {
return drupal_find_theme_functions($existing, array($theme));
}
function chameleon_page($content, $show_blocks = TRUE, $show_messages = TRUE) {
$language = $GLOBALS['language']->language;