Projet

Général

Profil

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

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

1
<?php
2

    
3
/**
4
 * @file
5
 * Implementation of hook_panels_layouts
6
 */
7
function adaptivetheme_three_inset_right_panels_layouts() {
8
  $items['three_inset_right'] = array(
9
    'title'    => t('AT Inset right'),
10
    'category' => t('AT Responsive Panels - Inset'),
11
    'icon'     => 'three_inset_right.png',
12
    'theme'    => 'three_inset_right',
13
    'admin css' => 'three_inset_right.admin.css',
14
    'theme arguments' => array('id', 'content'),
15
    'regions' => array(
16
      'three_inset_right_sidebar' => t('Sidebar'),
17
      'three_inset_right_top'     => t('Top (conditional)'),
18
      'three_inset_right_middle'  => t('Middle'),
19
      'three_inset_right_inset'   => t('Inset'),
20
      'three_inset_right_bottom'  => t('Bottom (conditional)'),
21
    ),
22
    // AT Core
23
    'type' => 'inset',
24
    'options' => array(
25
      'three-inset-right' => 'default',
26
      'three-inset-right-wrap' => 'wrap',
27
      'three-inset-right-stack' => 'stack',
28
    ),
29
    'styles' => array(
30
      'three-inset-right' => array(
31
        'css' => array(
32
          '25' => array('.three-inset-right > .region-three-inset-right-sidebar' => 'width:25%'),
33
          '75fl' => array('.three-inset-right > .inset-wrapper' => 'width:75%;float:left'),
34
          '33' => array('.three-inset-right > .inset-wrapper > div.region-three-inset-right-inset' => 'width:33.333333%'),
35
          '66' => array('.three-inset-right > .inset-wrapper > div.region-three-inset-right-middle' => 'width:66.666666%'),
36
          '100' => array('.three-inset-right > .inset-wrapper > .region' => 'width:100%'),
37
        ),
38
      ),
39
      'three-inset-right-wrap' => array(
40
        'css' => array(
41
          '25'   => array('.three-inset-right > .region-three-inset-right-sidebar' => 'width:25%'),
42
          '75fl' => array('.three-inset-right > .inset-wrapper' => 'width:75%;float:left'),
43
          'fdw'  => array('.three-inset-right > .inset-wrapper > .region' => 'float:none;display:block;width:100%;clear:both'),
44
        ),
45
      ),
46
      'three-inset-right-stack' => array(
47
        'css' => array(
48
          'fdw' => array('.three-inset-right > .inset-wrapper,.three-inset-right > .inset-wrapper > .region,.three-inset-right > .region-three-inset-right-sidebar' => 'float:none;display:block;width:100%;clear:both'),
49
        ),
50
      ),
51
    ),
52
  );
53

    
54
  return $items;
55
}
56

    
57
/**
58
 * Preprocess variables for three-inset-right.tpl.php
59
 */
60
function template_preprocess_three_inset_right(&$vars) {
61
  $vars['panel_prefix'] = '';
62
  $vars['panel_suffix'] = '';
63
}