Projet

Général

Profil

Paste
Télécharger (2,04 ko) Statistiques
| Branche: | Révision:

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

1
<?php
2

    
3
/**
4
 * @file
5
 * Implementation of hook_panels_layouts
6
 */
7
function adaptivetheme_six_6x16_panels_layouts() {
8
  $items['six_6x16'] = array(
9
    'title'    => t('AT Six column 6x16'),
10
    'category' => t('AT Responsive Panels - 4,5,6 column'),
11
    'icon'     => 'six_6x16.png',
12
    'theme'    => 'six_6x16',
13
    'admin css' => 'six_6x16.admin.css',
14
    'theme arguments' => array('id', 'content'),
15
    'regions' => array(
16
      'six_first'  => t('Column 1'),
17
      'six_second' => t('Column 2'),
18
      'six_third'  => t('Column 3'),
19
      'six_fourth' => t('Column 4'),
20
      'six_fifth'  => t('Column 5'),
21
      'six_sixth'  => t('Column 6'),
22
    ),
23
    // AT Core
24
    'type' => 'six',
25
    'options' => array(
26
      'six-6x16' => 'default',
27
      'six-6x16-3x2-grid' => '3x2 grid',
28
      'six-6x16-2x3-grid' => '2x3 grid',
29
      'six-6x16-stack' => 'stack',
30
    ),
31
    'styles' => array(
32
      'six-6x16' => array(
33
        'css' => array(
34
          '33fl' => array('.six-6x16 > .panel-row' => 'width:33.333333%;float:left'),
35
          '50' => array('.six-6x16 > .panel-row > .region' => 'width:50%'),
36
        ),
37
      ),
38
      'six-6x16-3x2-grid' => array(
39
        'css' => array(
40
          '33fl' => array('.six-6x16 > .panel-row' => 'width:33.333333%;float:left'),
41
          'fdw' => array('.six-6x16 > .panel-row > .region' => 'float:none;display:block;width:100%;clear:both'),
42
        ),
43
      ),
44
      'six-6x16-2x3-grid' => array(
45
        'css' => array(
46
          'fdw' => array('.six-6x16 > .panel-row' => 'float:none;display:block;width:100%;clear:both'),
47
          '50fl' => array('.six-6x16 > .panel-row > .region' => 'width:50%;float:left'),
48
        ),
49
      ),
50
      'six-6x16-stack' => array(
51
        'css' => array(
52
          'fdw' => array('.six-6x16 > .panel-row > .region,.six-6x16 > .panel-row ' => 'float:none;display:block;width:100%;clear:both'),
53
        ),
54
      ),
55
    ),
56
  );
57

    
58
  return $items;
59
}
60

    
61
/**
62
 * Preprocess variables for six-6x16.tpl.php
63
 */
64
function template_preprocess_six_6x16(&$vars) {
65
  $vars['panel_prefix'] = '';
66
  $vars['panel_suffix'] = '';
67
}