You are here

function template_preprocess_panels_onecol_clean in Clean Markup 7.2

Same name and namespace in other branches
  1. 7.3 modules/clean_markup_panels/plugins/layouts/onecol_clean/onecol_clean.inc \template_preprocess_panels_onecol_clean()

Prepares variables for panels_onecol_clean templates.

Default template: panels-onecol-clean.tpl.php.

Parameters

array $variables: An associative array containing:

  • $content: An array of content, each item in the array is keyed to one panel of the layout.

File

modules/clean_markup_panels/plugins/layouts/onecol_clean/onecol_clean.inc, line 27
Define the a single-column style plugin.

Code

function template_preprocess_panels_onecol_clean(array &$variables) {

  // Construct an ID/Class attributes.
  $variables['panel_classes'] = 'panel-display panel-1col-clean clearfix';
  if ($variables['css_id']) {
    $variables['panel_id'] = ' id="' . $variables['css_id'] . '"';
    $variables['panel_classes'] .= ' ' . $variables['css_id'];
  }
  else {
    $variables['panel_id'] = '';
  }
}