// $Id$ ---------------------------------------- Möthership ---------------------------------------- The mothership theme is the über "clean up this html that drupal provides" theme - so if you wanna make any sense of this them use it as a parent theme! The basic idea is to use this theme before other "theme systemes" (zen, basic, studio, 960, whatever) To implement this just add: base theme = mothership in you .info file, and youre ready to look at the source yet again without getting overwhelmed by a ton of .classes and markup. The only thing this theme does is to clean up and remove html & classes that I dont think is necessary, and creating a cleaner html code. Mothership will remove some of the flexibility that cck & views provides out of the box, so please be aware of this! (read the documentation - to specify what is changed) If youre not a html nerd that gets high by looking at html and enjoying the cleaner code, well then this theme is NOT for you. ---------------------------------------- How to get this to work: ---------------------------------------- First of all add this line to your theme info file: base theme = mothership Then if you wanna use all the sweet settings (so you can toggle classes on & off the blocks, nodes etc) you need to do a little bit of work: copy the "_copy_to_your_subtheme_theme-settings.php" file into your subtheme folder and rename the file to "theme-settings.php" In the theme-settings.php file you need to change SUBTHEME to the name of your theme. So Lets say your theme is called "awesomesauce" change the function SUBTHEME_settings function. from: function SUBTHEME_settings($saved_settings) { .... $defaults = mothership_theme_get_default_settings('SUBTHEME'); ..... } to: function awesomesauce_settings($saved_settings) { .... $defaults = mothership_theme_get_default_settings('awesomesauce'); ..... } Now go to your new subtheme and go into the settings (admin/build/themes/settings/THEMENAME), and hit "save configuration" now you have the configuration ready for use in the theme settings. I know its not the best way but it will all be changed in D7. Theres an example theme called msdroid that have these settings predefined You dont need to activate the mothership to use it in other themes. ---------------------------------------- Theme settings ---------------------------------------- modify CSS Classes for page, node, block, comments & views ------------------ In the Theme settings its possible to remove some or all of the css classes that drupal normally adds to the $classes variable in the .tpl files page.tpl --------------- Modifies the which is normaly added to the
this will not remove the following classes * logged -in * front status * page-[NODETYPE] * sidebar status node.tpl --------------- modifies the normal this is added to the outer