1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* @file
|
5 |
|
|
* Implementation of hook_panels_layouts
|
6 |
|
|
*/
|
7 |
|
|
function adaptivetheme_three_3x33_panels_layouts() {
|
8 |
|
|
$items['three_3x33'] = array(
|
9 |
|
|
'title' => t('AT Three column 3x33'),
|
10 |
|
|
'category' => t('AT Responsive Panels - 3 column'),
|
11 |
|
|
'icon' => 'three_3x33.png',
|
12 |
|
|
'theme' => 'three_3x33',
|
13 |
|
|
'admin css' => 'three_3x33.admin.css',
|
14 |
|
|
'theme arguments' => array('id', 'content'),
|
15 |
|
|
'regions' => array(
|
16 |
|
|
'three_33_top' => t('Top (conditional)'),
|
17 |
|
|
'three_33_first' => t('Left'),
|
18 |
|
|
'three_33_second' => t('Center'),
|
19 |
|
|
'three_33_third' => t('Right'),
|
20 |
|
|
'three_33_bottom' => t('Bottom (conditional)'),
|
21 |
|
|
),
|
22 |
|
|
// AT Core
|
23 |
|
|
'type' => 'three',
|
24 |
|
|
'options' => array(
|
25 |
|
|
'three-3x33' => 'default',
|
26 |
74f6bef0
|
Assos Assos
|
'three-3x33-5050-stack-bottom' => 'even stack bottom', // new layout for 7.x-3.2
|
27 |
85ad3d82
|
Assos Assos
|
'three-3x33-stack-bottom' => 'stack bottom',
|
28 |
|
|
'three-3x33-stack-top' => 'stack top',
|
29 |
|
|
'three-3x33-stack' => 'stack',
|
30 |
|
|
),
|
31 |
|
|
'styles' => array(
|
32 |
|
|
'three-3x33' => array(
|
33 |
|
|
'css' => array(
|
34 |
|
|
'33' => array('.three-3x33 > .region' => 'width:33.333333%'),
|
35 |
|
|
),
|
36 |
|
|
),
|
37 |
74f6bef0
|
Assos Assos
|
'three-3x33-5050-stack-bottom' => array(
|
38 |
|
|
'css' => array(
|
39 |
|
|
'50' => array('.three-3x33 > .region' => 'width:50%'),
|
40 |
|
|
'fdw' => array('.three-3x33 > .region-three-33-third' => 'float:none;display:block;width:100%;clear:both'),
|
41 |
|
|
),
|
42 |
|
|
),
|
43 |
85ad3d82
|
Assos Assos
|
'three-3x33-stack-bottom' => array(
|
44 |
|
|
'css' => array(
|
45 |
|
|
'66' => array('.three-3x33 > .region-three-33-first' => 'width:66.666666%'),
|
46 |
|
|
'33' => array('.three-3x33 > .region-three-33-second' => 'width:33.333333%'),
|
47 |
|
|
'fdw' => array('.three-3x33 > .region-three-33-third' => 'float:none;display:block;width:100%;clear:both'),
|
48 |
|
|
),
|
49 |
|
|
),
|
50 |
|
|
'three-3x33-stack-top' => array(
|
51 |
|
|
'css' => array(
|
52 |
|
|
'50' => array('.three-3x33 > .region' => 'width:50%'),
|
53 |
|
|
'fdw' => array('.three-3x33 > div.region-three-33-first' => 'float:none;display:block;width:100%;clear:both'),
|
54 |
|
|
),
|
55 |
|
|
),
|
56 |
|
|
'three-3x33-stack' => array(
|
57 |
|
|
'css' => array(
|
58 |
|
|
'fdw' => array('.three-3x33 > .region' => 'float:none;display:block;width:100%;clear:both'),
|
59 |
|
|
),
|
60 |
|
|
),
|
61 |
|
|
),
|
62 |
|
|
);
|
63 |
|
|
|
64 |
|
|
return $items;
|
65 |
|
|
}
|
66 |
|
|
|
67 |
|
|
/**
|
68 |
|
|
* Preprocess variables for three-3x33.tpl.php
|
69 |
|
|
*/
|
70 |
|
|
function template_preprocess_three_3x33(&$vars) {
|
71 |
|
|
$vars['panel_prefix'] = '';
|
72 |
|
|
$vars['panel_suffix'] = '';
|
73 |
|
|
} |