-
Notifications
You must be signed in to change notification settings - Fork 0
/
asc_commerce.ds.inc
55 lines (52 loc) · 1.33 KB
/
asc_commerce.ds.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* @file
* asc_commerce.ds.inc
*/
/**
* Implements hook_ds_layout_settings_info().
*/
function asc_commerce_ds_layout_settings_info() {
$export = array();
$ds_layout = new stdClass();
$ds_layout->api_version = 1;
$ds_layout->id = 'node|product_display|default';
$ds_layout->entity_type = 'node';
$ds_layout->bundle = 'product_display';
$ds_layout->view_mode = 'default';
$ds_layout->layout = 'ds_2col_stacked';
$ds_layout->settings = array(
'regions' => array(
'header' => array(
0 => 'body',
1 => 'product:field_description',
),
'left' => array(
2 => 'product:field_product_image',
),
'right' => array(
3 => 'product:commerce_price',
4 => 'field_product_reference',
),
),
'fields' => array(
'body' => 'header',
'product:field_description' => 'header',
'product:field_product_image' => 'left',
'product:commerce_price' => 'right',
'field_product_reference' => 'right',
),
'classes' => array(),
'wrappers' => array(
'header' => 'div',
'left' => 'div',
'right' => 'div',
'footer' => 'div',
),
'layout_wrapper' => 'div',
'layout_attributes' => '',
'layout_attributes_merge' => 1,
);
$export['node|product_display|default'] = $ds_layout;
return $export;
}