1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* @file
|
5 |
|
|
* Implementation of hook_panels_layouts
|
6 |
|
|
*/
|
7 |
|
|
function adaptivetheme_four_4x25_panels_layouts() {
|
8 |
|
|
$items['four_4x25'] = array(
|
9 |
|
|
'title' => t('AT Four column 4x25'),
|
10 |
|
|
'category' => t('AT Responsive Panels - 4,5,6 column'),
|
11 |
|
|
'icon' => 'four_4x25.png',
|
12 |
|
|
'theme' => 'four_4x25',
|
13 |
|
|
'admin css' => 'four_4x25.admin.css',
|
14 |
|
|
'theme arguments' => array('id', 'content'),
|
15 |
|
|
'regions' => array(
|
16 |
|
|
'four_first' => t('Column 1'),
|
17 |
|
|
'four_second' => t('Column 2'),
|
18 |
|
|
'four_third' => t('Column 3'),
|
19 |
|
|
'four_fourth' => t('Column 4'),
|
20 |
|
|
),
|
21 |
|
|
// AT Core
|
22 |
|
|
'type' => 'four',
|
23 |
|
|
'options' => array(
|
24 |
|
|
'four-4x25' => 'default',
|
25 |
|
|
'four-4x25-right-stack' => 'stack right',
|
26 |
|
|
'four-4x25-2x2-grid' => '2x2 grid',
|
27 |
|
|
'four-4x25-stack' => 'stack',
|
28 |
|
|
),
|
29 |
|
|
'styles' => array(
|
30 |
|
|
'four-4x25' => array(
|
31 |
|
|
'css' => array(
|
32 |
|
|
'50fl' => array('.four-4x25 > .panel-row > .region,.four-4x25 > .panel-row' => 'width:50%;float:left'),
|
33 |
|
|
),
|
34 |
|
|
),
|
35 |
|
|
'four-4x25-right-stack' => array(
|
36 |
|
|
'css' => array(
|
37 |
|
|
'50fl' => array('.four-4x25 > .panel-row,.four-4x25 > .row-2 > .region' => 'width:50%;float:left'),
|
38 |
|
|
'fdw' => array('.four-4x25 > .row-1 > .region' => 'float:none;display:block;width:100%;clear:both'),
|
39 |
|
|
),
|
40 |
|
|
),
|
41 |
|
|
'four-4x25-2x2-grid' => array(
|
42 |
|
|
'css' => array(
|
43 |
|
|
'50' => array('.four-4x25 > .panel-row > .region' => 'width:50%'),
|
44 |
|
|
'fdw' => array('.four-4x25 > .panel-row' => 'float:none;display:block;width:100%;clear:both'),
|
45 |
|
|
),
|
46 |
|
|
),
|
47 |
|
|
'four-4x25-stack' => array(
|
48 |
|
|
'css' => array(
|
49 |
|
|
'fdw' => array('.four-4x25 > .panel-row > .region,.four-4x25 > .panel-row' => 'float:none;display:block;width:100%;clear:both'),
|
50 |
|
|
),
|
51 |
|
|
),
|
52 |
|
|
),
|
53 |
|
|
);
|
54 |
|
|
|
55 |
|
|
return $items;
|
56 |
|
|
}
|
57 |
|
|
|
58 |
|
|
/**
|
59 |
|
|
* Preprocess variables for four-4x25.tpl.php
|
60 |
|
|
*/
|
61 |
|
|
function template_preprocess_four_4x25(&$vars) {
|
62 |
|
|
$vars['panel_prefix'] = '';
|
63 |
|
|
$vars['panel_suffix'] = '';
|
64 |
|
|
} |