Yes, the title is meant to be satirical. However, I won't even call this a "true" alpha release because -- frankly -- I don't think its ready. It's undocumented, a bit buggy, and the design is something I threw together while taking 30 minutes to rest before returning to my real work. However, by popular demand I'm putting up Curved Slate as it stands for download.
Note that this theme only works with drupal 4.7. And no, I have no intention of making it backward compatible.
Understand that most of what makes this theme cool is in the scripting, markup, and so forth. Or to put it another way, this theme intends to be a good starting point for your own original theme.
FEATURES
- ALL CSS fluid three columns layout with footer ordered with content on top, and sidebars on the bottom.
- main content expands and contracts in response to the existence, or lack of existence of sidebars.
- Supports min/max width in both firefox and explorer
- Dynamically generates CSS classes for node links. In otherwords, a new module that puts a link in for a node automatically gets a class name. This allows node links to displayed like a so:

- Automatically generated curves "of course"
- A whole lot of other stuff I'm not thinking about...
- Anyways, make sure to install the jstoolbox module included with this download, and remember -- this is not a final release, and it never claimed to be. That said, I hope this starting point will help out some fellow drupal developers who have workloads as ridiculous as my own.
Comments
I have a quick question, I
I have a quick question, I like the dynamic CSS for node links! How would you apply this to comment links like edit reply and delete? Thanks for the contribution! Its sheds some light on whats possible :)
where can I find a download
Downloading
See the answer he gave on
Merging CSS Node Links and PHPBB forum theme snippet
I am working on merging the dynamic CSS node links code from template.php with the template.php snippet from http://www.drupalart.org/phpbb. The problem is that both declare the same variable. I worked for a bit to merge them without errors, by now the node links are not showing up. Can someone give me some direction? Would love your help : ) I pasted the contents of my "merged" template.php. I am not a developer but don't mind giving it a shot from time to time. Thanks in advance ;)
<?php function phptemplate_image_gallery($galleries, $images) { return _phptemplate_callback('image_gallery', array('galleries' => $galleries, 'images' => $images)); } function _phptemplate_variables($hook, $vars) { static $is_forum; if (!isset($is_forum)) { if (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == '') { $nid = arg(1); } if (arg(0) == 'comment' && arg(1) == 'reply' && is_numeric(arg(2))) { $nid = arg(2); } if ($nid) { $node = node_load(array('nid' => $nid)); } $is_forum = ($node && $node->type == 'forum'); _is_forum($is_forum); } if ($is_forum) { switch ($hook) { case 'page': $variables['content'] = '<table>'. $vars['content'] .'</table><!-- this -->'; break; case 'comment' : $variables['template_file'] = 'node-forum'; $variables['row_class'] = _row_class(); $variables['name'] = $vars['author']; $variables['userid']=$vars['comment']->uid; $joined = module_invoke('flatforum', 'get_created', $vars['comment']->uid); $variables['joined'] = $joined ? format_date($joined, 'custom', 'Y-m-d') : ''; $posts = module_invoke('flatforum', 'get', $vars['comment']->uid); $variables['posts'] = $posts ? $posts : 0; $variables['submitted'] = format_date($vars['comment']->timestamp); $subject = $vars['comment']->subject; $variables['title'] = empty($subject) ? ' ' : $subject; $variables['content'] = $vars['comment']->comment; $variables['links'] = empty($vars['links']) ? ' ' : $vars['links']; break; case 'node' : $variables['row_class'] = _row_class(); $variables['userid']=$vars['node']->uid; $joined = module_invoke('flatforum', 'get_created', $vars['node']->uid); $variables['joined'] = $joined ? format_date($joined, 'custom', 'Y-m-d') : ''; $posts = module_invoke('flatforum', 'get', $vars['node']->uid); $variables['posts'] = $posts ? $posts : 0; $variables['title'] = empty($vars['title']) ? ' ' : $vars['title']; $variables['content'] = $vars['node']->body; $variables['links'] = empty($vars['links']) ? ' ' : $vars['links']; } } else { switch ($hook) { case 'node': foreach ($vars[node]->links as $link) { preg_match("/<a\s*.*?href\s*=\s*['\"]([^\"'>]*).*?>(.*?)<\/a>/i",$link, $matches); $classparts = explode(" ", $matches[2]); if (in_array('blog', $classparts)) { $class = "blog-link"; } else if (is_numeric($classparts[0])) { $class = $classparts[1] . $classparts[2] ; } else { $class = $classparts[0] . $classparts[1] . $classparts[2] ; } $vars[nodelinks] .= '<a href="'. $matches[1] .'" class="' . $class . '">' . $matches[2] . '</a>'; } break; } } return $variables; } function _row_class() { static $forum_row = TRUE; $forum_row = !$forum_row; return $forum_row ? 'dark' : 'light'; } function _is_forum($arg = NULL) { static $is_forum = FALSE; if ($arg) { $is_forum = $arg; } return $is_forum; } function phptemplate_comment_form($edit, $title) { $form = (is_file(path_to_theme(). 'comment_form.tpl.php') ? _phptemplate_callback('comment_form', array('edit' => $edit, 'title' => $title)) : theme_comment_form($edit, $title)); return _is_forum() ? '<tr><td colspan="2">'. $form .'</td></tr>' : $form; } function phptemplate_pager($tags = array(), $limit = 10, $element = 0, $attributes = array()) { $pager = (is_file(path_to_theme(). 'pager.tpl.php') ? _phptemplate_callback('comment_form', array('tags' => $tags, 'limit' => $limit, 'element' => $element, 'attributes' => $attributes)) : theme_pager($tags, $limit, $element, $attributes)); return _is_forum() ? '<tr><td colspan="2">'. $pager .'</td></tr>' : $pager; } ?>
Return $vars
$vars[nodelinks] .= '<a href="'. $matches[1] .'" class="' . $class . '">' . $matches[2] . '</a>'; } break; } } return $variables;
I suspect that you forgot to return the $vars object that the node links were placed into. Try "return $vars".
Like the template.
I'm looking forward to seeing the full version, too
which version
Which version of Drupal is this intended to work with?
I tried installing it in a 4.6.5 installation and got an error - but now I'm thinking that you were making it for 4.7 maybe?
The error is: "Fatal error: Call to undefined function: drupal_add_js() in /home/user/example.com/modules/jstoolbox/jstoolbox.module on line 18"
DOH! I forgot to mention
I'm looking forward to seeing the full version.
I'm looking forward to experimenting with the new theme once it's out of beta. I currently use "Goofy" because it's super-simple for someone like me who doesn't know anything about scripting.
I suspect that the reason Technorati doesn't index me is because of the theme. (I can't explain it, but that's what I suspect.) I hope that between Drupal 4.7 and a new theme, the problem will fix itself.
Post new comment