Projet

Général

Profil

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

root / drupal7 / sites / all / themes / adaptivetheme / at_core / layouts / panels / three_25_25_50 / three_25_25_50.inc @ a08833bd

1
<?php
2

    
3
/**
4
 * @file
5
 * Implementation of hook_panels_layouts
6
 */
7
function adaptivetheme_three_25_25_50_panels_layouts() {
8
  $items['three_25_25_50'] = array(
9
    'title'    => t('AT Three column 25/25/50'),
10
    'category' => t('AT Responsive Panels - 3 column'),
11
    'icon'     => 'three_25_25_50.png',
12
    'theme'    => 'three_25_25_50',
13
    'admin css' => 'three_25_25_50.admin.css',
14
    'theme arguments' => array('id', 'content'),
15
    'regions' => array(
16
      'three_25_25_50_top'    => t('Top (conditional)'),
17
      'three_25_25_50_first'  => t('Left'),
18
      'three_25_25_50_second' => t('Center'),
19
      'three_25_25_50_third'  => t('Right'),
20
      'three_25_25_50_bottom' => t('Bottom (conditional)'),
21
    ),
22
    // AT Core
23
    'type' => 'three',
24
    'options' => array(
25
      'three-25-25-50' => 'default',
26
      'three-25-25-50-stack-bottom' => 'stack bottom',
27
      'three-25-25-50-stack-top' => 'stack top',
28
      'three-25-25-50-stack' => 'stack',
29
    ),
30
    'styles' => array(
31
      'three-25-25-50' => array(
32
        'css' => array(
33
          '25' => array('.three-25-25-50 > .region' => 'width:25%'),
34
          '50' => array('.three-25-25-50 > div.region-three-25-25-50-third' => 'width:50%'),
35
        ),
36
      ),
37
      'three-25-25-50-stack-bottom' => array(
38
        'css' => array(
39
          '50' => array('.three-25-25-50 > .region' => 'width:50%'),
40
          'fdw' => array('.three-25-25-50 > .region-three-25-25-50-third' => 'float:none;display:block;width:100%;clear:both'),
41
        ),
42
      ),
43
      'three-25-25-50-stack-top' => array(
44
        'css' => array(
45
          'fdw' => array('.three-25-25-50 > .region-three-25-25-50-first' => 'float:none;display:block;width:100%;clear:both'),
46
          '25' => array('.three-25-25-50 > div.region-three-25-25-50-second' => 'width:25%'),
47
          '75' => array('.three-25-25-50 > div.region-three-25-25-50-third' => 'width:75%'),
48
        ),
49
      ),
50
      'three-25-25-50-stack' => array(
51
        'css' => array(
52
          'fdw' => array('.three-25-25-50 > .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-25-25-50.tpl.php
63
 */
64
function template_preprocess_three_25_25_50(&$vars) {
65
  $vars['panel_prefix'] = '';
66
  $vars['panel_suffix'] = '';
67
}