Projet

Général

Profil

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

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

1
<?php
2

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

    
58
  return $items;
59
}
60

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