You are here

six_pack.inc in Clean Markup 7.2

Same filename and directory in other branches
  1. 7.3 modules/clean_markup_panels/plugins/layouts/six_pack/six_pack.inc

Define the Six Pack style plugin.

File

modules/clean_markup_panels/plugins/layouts/six_pack/six_pack.inc
View source
<?php

/**
 * @file
 * Define the Six Pack style plugin.
 */

// Plugin definition.
$plugin = array(
  'title' => t('Six Pack: 6 regions'),
  'category' => t('Clean Markup'),
  'icon' => 'six_pack.png',
  'theme' => 'panels_six_pack',
  'regions' => array(
    'first' => t('First', array(
      'context' => 'Six Pack: Region First',
    )),
    'second' => t('Second', array(
      'context' => 'Six Pack: Region Second',
    )),
    'third' => t('Third', array(
      'context' => 'Six Pack: Region Third',
    )),
    'fourth' => t('Fourth', array(
      'context' => 'Six Pack: Region Fourth',
    )),
    'fifth' => t('Fifth', array(
      'context' => 'Six Pack: Region Fifth',
    )),
    'sixth' => t('Sixth', array(
      'context' => 'Six Pack: Region Sixth',
    )),
  ),
);

/**
 * Prepares variables for panels_six_pack templates.
 *
 * Default template: panels-six-pack.tpl.php.
 *
 * @param array $variables
 *   An associative array containing:
 *   - $content: An array of content, each item in the array is keyed to one
 *     panel of the layout.
 */
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'] = '';
  }
}

Functions

Namesort descending Description
template_preprocess_panels_six_pack Prepares variables for panels_six_pack templates.