1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* Implementation of hook_panels_layouts
|
6
|
*/
|
7
|
function adaptivetheme_two_66_33_panels_layouts() {
|
8
|
$items['two_66_33'] = array(
|
9
|
'title' => t('AT Two column 66/33'),
|
10
|
'category' => t('AT Responsive Panels - 2 column'),
|
11
|
'icon' => 'two_66_33.png',
|
12
|
'theme' => 'two_66_33',
|
13
|
'admin css' => 'two_66_33.admin.css',
|
14
|
'theme arguments' => array('id', 'content'),
|
15
|
'regions' => array(
|
16
|
'two_66_33_top' => t('Top (conditional)'),
|
17
|
'two_66_33_first' => t('Left'),
|
18
|
'two_66_33_second' => t('Right'),
|
19
|
'two_66_33_bottom' => t('Bottom (conditional)'),
|
20
|
),
|
21
|
// AT Core
|
22
|
'type' => 'two',
|
23
|
'options' => array(
|
24
|
'two-66-33' => 'default',
|
25
|
'two-66-33-stack' => 'stack',
|
26
|
),
|
27
|
'styles' => array(
|
28
|
'two-66-33' => array(
|
29
|
'css' => array(
|
30
|
'66' => array('.two-66-33 > .region-two-66-33-first' => 'width:66.666666%'),
|
31
|
'33' => array('.two-66-33 > .region-two-66-33-second' => 'width:33.333333%'),
|
32
|
),
|
33
|
),
|
34
|
'two-66-33-stack' => array(
|
35
|
'css' => array(
|
36
|
'fdw' => array('.two-66-33 > .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-66-33.php
|
47
|
*/
|
48
|
function template_preprocess_two_66_33(&$vars, $hook) {
|
49
|
$vars['panel_prefix'] = '';
|
50
|
$vars['panel_suffix'] = '';
|
51
|
}
|