You are here

function template_preprocess_panels_six_pack in Clean Markup 7.2

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

Prepares variables for panels_six_pack templates.

Default template: panels-six-pack.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/six_pack/six_pack.inc, line 34
Define the Six Pack style plugin.

Code

function template_preprocess_panels_six_pack(array &$variables) {

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