Projet

Général

Profil

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

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

1
<?php
2

    
3
/**
4
 * @file
5
 * Implementation of hook_panels_layouts
6
 */
7
function adaptivetheme_three_25_50_25_panels_layouts() {
8
  $items['three_25_50_25'] = array(
9
    'title'    => t('AT Three column 25/50/25'),
10
    'category' => t('AT Responsive Panels - 3 column'),
11
    'icon'     => 'three_25_50_25.png',
12
    'theme'    => 'three_25_50_25',
13
    'admin css' => 'three_25_50_25.admin.css',
14
    'theme arguments' => array('id', 'content'),
15
    'regions' => array(
16
      'three_25_50_25_top'    => t('Top (conditional)'),
17
      'three_25_50_25_first'  => t('Left'),
18
      'three_25_50_25_second' => t('Center'),
19
      'three_25_50_25_third'  => t('Right'),
20
      'three_25_50_25_bottom' => t('Bottom (conditional)'),
21
    ),
22
    // AT Core
23
    'type' => 'three',
24
    'options' => array(
25
      'three-25-50-25' => 'default',
26
      'three-25-50-25-stack-bottom' => 'stack bottom',
27
      'three-25-50-25-stack-top' => 'stack top',
28
      'three-25-50-25-stack' => 'stack',
29
    ),
30
    'styles' => array(
31
      'three-25-50-25' => array(
32
        'css' => array(
33
          '25' => array('.three-25-50-25 > .region' => 'width:25%'),
34
          '50' => array('.three-25-50-25 > div.region-three-25-50-25-second' => 'width:50%'),
35
        ),
36
      ),
37
      'three-25-50-25-stack-bottom' => array(
38
        'css' => array(
39
          '25' => array('.three-25-50-25 > div.region-three-25-50-25-first' => 'width:25%'),
40
          '75' => array('.three-25-50-25 > div.region-three-25-50-25-second' => 'width:75%'),
41
          'fdw' => array('.three-25-50-25 > .region-three-25-50-25-third' => 'float:none;display:block;width:100%;clear:both'),
42
        ),
43
      ),
44
      'three-25-50-25-stack-top' => array(
45
        'css' => array(
46
          'fdw' => array('.three-25-50-25 > .region-three-25-50-25-first' => 'float:none;display:block;width:100%;clear:both'),
47
          '75' => array('.three-25-50-25 > div.region-three-25-50-25-second' => 'width:75%'),
48
          '25' => array('.three-25-50-25 > div.region-three-25-50-25-third' => 'width:25%'),
49
        ),
50
      ),
51
      'three-25-50-25-stack' => array(
52
        'css' => array(
53
          'fdw' => array('.three-25-50-25 > .region' => 'float:none;display:block;width:100%;clear:both'),
54
        ),
55
      ),
56
    ),
57
  );
58

    
59
  return $items;
60
}
61

    
62
/**
63
 * Preprocess variables for three-25-50-25.tpl.php
64
 */
65
function template_preprocess_three_25_50_25(&$vars) {
66
  $vars['panel_prefix'] = '';
67
  $vars['panel_suffix'] = '';
68
}