-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
130 lines (124 loc) · 3.23 KB
/
ext_tables.php
File metadata and controls
130 lines (124 loc) · 3.23 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
//\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
// $_EXTKEY,
// 'Pi1',
// 'Website'
//);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Website');
$tempColumns = Array(
'bootstrap_col_xs' => Array(
'exclude' => 1,
'label' => 'Extra small devices (<768px)',
'config' => array(
'type' => 'select',
'items' => array(
array('', '0'),
array('1/12', '1'),
array('2/12', '2'),
array('3/12', '3'),
array('4/12', '4'),
array('5/12', '5'),
array('6/12', '6'),
array('7/12', '7'),
array('8/12', '8'),
array('9/12', '9'),
array('10/12', '10'),
array('11/12', '11'),
array('12/12', '12'),
)
)
),
'bootstrap_col_sm' => Array(
'exclude' => 1,
'label' => 'Small devices (Tablets ≥768px)',
'config' => array(
'type' => 'select',
'items' => array(
array('', '0'),
array('1/12', '1'),
array('2/12', '2'),
array('3/12', '3'),
array('4/12', '4'),
array('5/12', '5'),
array('6/12', '6'),
array('7/12', '7'),
array('8/12', '8'),
array('9/12', '9'),
array('10/12', '10'),
array('11/12', '11'),
array('12/12', '12'),
)
)
),
'bootstrap_col_md' => Array(
'exclude' => 1,
'label' => 'Medium devices (Desktops ≥992px)',
'config' => array(
'type' => 'select',
'items' => array(
array('', '0'),
array('1/12', '1'),
array('2/12', '2'),
array('3/12', '3'),
array('4/12', '4'),
array('5/12', '5'),
array('6/12', '6'),
array('7/12', '7'),
array('8/12', '8'),
array('9/12', '9'),
array('10/12', '10'),
array('11/12', '11'),
array('12/12', '12'),
)
)
),
'bootstrap_col_lg' => Array(
'exclude' => 1,
'label' => 'Large devices Desktops (≥1200px)',
'config' => array(
'type' => 'select',
'items' => array(
array('', '0'),
array('1/12', '1'),
array('2/12', '2'),
array('3/12', '3'),
array('4/12', '4'),
array('5/12', '5'),
array('6/12', '6'),
array('7/12', '7'),
array('8/12', '8'),
array('9/12', '9'),
array('10/12', '10'),
array('11/12', '11'),
array('12/12', '12'),
)
)
),
'bootstrap_css' => Array(
'exclude' => 1,
'label' => 'CSS for outer <div>',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => '255',
'eval' => ''
)
),
'bootstrap_css_inner' => Array(
'exclude' => 1,
'label' => 'CSS for inner <div>',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => '255',
'eval' => ''
)
),
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $tempColumns);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_content', ', --div--;Bootstrap, bootstrap_col_xs, bootstrap_col_sm, bootstrap_col_md, bootstrap_col_lg, bootstrap_css, bootstrap_css_inner', '', 'after:categories');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ot_website/Configuration/TypoScript/pageTSconfig.ts">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ot_website/Configuration/TypoScript/userTSconfig.ts">');