Skip to content
nickgrossman edited this page Nov 30, 2011 · 2 revisions

The custom theme that powers the site is found at sites/all/themes/civiccommons and is a subtheme of the Omega theme.

The Omega Theme

The Omega theme is a complex theme focused on providing a lot of functionality and extensibility (meaning powerful but large learning curve).

Omega focuses on a grid-based layout (defaults to 960px width). It uses Drupal's Regions, and defines Zones, which are sections of regions. It provides a rich set of theme settings in the interface (which are exportable).

The Omega theme has a number of subthemes. (which one is ours?? Omega XHTML)

Omega also makes the mechanics of a theme a bit unique, but provides adequate documentation. Specifically things like:

  • Builds page layout from only Regions and Zones (see the page.tpl.php)
  • How to best structure preprocess and process functions.

Regions

You can see a visual representation of all the block regions at: [admin/structure/block/demo/civiccommons](http://marketplace.civiccommons.org/admin/structure/block/demo/civiccommons)

Setting Overrides

Settings were originally overridden using the Delta module, but that has since been refactored and disabled for simplicity. The display / arrangement of blocks are now handled both via Contexts and via conditional display settings in the Blocks admin. This should probably be further clarified such that all conditional displays are handled in one place (either via Context or via block settings).

CSS

global.css was developed during September, but was then refactored in October -- the result is that there are now only two active stylesheets: acochran-global.css and nick.css. (the definitions in nick.css should be merged into acochran-global.css). Any production or development sites should disable all of the custom stylesheets in civiccommons/css except for acochran-global.css and nick.css.

Scripts

  • Why is there a Google Analytics script here? The module provides one.
Clone this wiki locally