Projet

Général

Profil

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

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

1
<?php
2

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

    
41
  return $items;
42
}
43

    
44
/**
45
 * Preprocess variables for two-50.tpl.php
46
 */
47
function template_preprocess_two_50(&$vars) {
48
  $vars['panel_prefix'] = '';
49
  $vars['panel_suffix'] = '';
50
}