Projet

Général

Profil

Paste
Télécharger (1,54 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / adaptivetheme / at_core / layouts / panels / two_brick / two_brick.inc @ 74f6bef0

1
<?php
2

    
3
/**
4
 * @file
5
 * Implementation of hook_panels_layouts
6
 */
7
function adaptivetheme_two_brick_panels_layouts() {
8
  $items['two_brick'] = array(
9
    'title'    => t('AT Two column brick'),
10
    'category' => t('AT Responsive Panels - 2 column'),
11
    'icon'     => 'two_brick.png',
12
    'theme'    => 'two_brick',
13
    'admin css' => 'two_brick.admin.css',
14
    'theme arguments' => array('id', 'content'),
15
    'regions' => array(
16
      'two_brick_top'         => t('Top (conditional)'),
17
      'two_brick_left_above'  => t('Left above'),
18
      'two_brick_right_above' => t('Right above'),
19
      'two_brick_middle'      => t('Middle (conditional)'),
20
      'two_brick_left_below'  => t('Left below'),
21
      'two_brick_right_below' => t('Right below'),
22
      'two_brick_bottom'      => t('Bottom (conditional)'),
23
    ),
24
    // AT Core
25
    'type' => 'two',
26
    'options' => array(
27
      'two-brick' => 'default',
28
      'two-brick-stack' => 'stack',
29
    ),
30
    'styles' => array(
31
      'two-brick' => array(
32
        'css' => array(
33
          'fn' => array('.two-brick > .panel-row' => 'float:none'),
34
          '50' => array('.two-brick > .panel-row > .region' => 'width:50%'),
35
        ),
36
      ),
37
      'two-brick-stack' => array(
38
        'css' => array(
39
          'fdw' => array('.two-brick > .panel-row > .region' => 'float:none;display:block;width:100%;clear:both'),
40
        ),
41
      ),
42
    ),
43
  );
44

    
45
  return $items;
46
}
47

    
48
/**
49
 * Preprocess variables for two-brick.tpl.php
50
 */
51
function template_preprocess_two_brick(&$vars) {
52
  $vars['panel_prefix'] = '';
53
  $vars['panel_suffix'] = '';
54
}