Projet

Général

Profil

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

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

1
<?php
2

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

    
42
  return $items;
43
}
44

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