You are here

function naked_layout in Brainstorm profile 7

CSS Builder for the naked layout.

Page layout functions are called during theme settings submit to process and return CSS to be written to file. Sidebar width and unit values are set in theme settings and passed to this function as parameters.

In essense you just write CSS here using the parameters as placeholders for inserting the values. You might do some logic with those values first depending on the complexity and nature of your layout. Its worth taking some time to review AT Cores Page layouts for examples.

Parameters

$sidebar_first , an arbitary numeric value.:

$sidebar_second , an arbitary numeric value.:

$sidebar_unit , a value unit, one of px, em or %.:

Return value

string

File

themes/brainstorm_theme/layouts/page/naked/naked.inc, line 64
Implimentation of an Adaptivetheme Page Layout plugin

Code

function naked_layout($sidebar_first, $sidebar_second, $sidebar_unit) {
  $styles = <<<EOF
/* Nothing to output, this style is naked! */
EOF;
  return $styles;
}