-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
68 lines (47 loc) · 1.47 KB
/
config.php
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
<?php
/**
* Grid Extension for Contao
*
* Copyright (c) 2017 Georg Preissl
*
* @package gp_grix
* @link http://www.georg-preissl.at
* @license http://opensource.org/licenses/MIT MIT
*/
/**
* Backend module
*/
array_insert($GLOBALS['BE_MOD']['design'], 1, array
(
'grixbe' => array
(
'callback' => 'GrixBe',
'tables' => array('tl_article'),
'icon' => 'system/modules/gp_grix/assets/img/icon.svg'
),
'grixCss' => array
(
'tables' => array('tl_grix_css'),
'icon' => 'system/modules/gp_grix/assets/img/icon.svg'
)
));
/**
* Hooks
*/
// Add the grix icon in the article list view
$GLOBALS['TL_HOOKS']['loadDataContainer'][] = array('GrixHooks', 'addGrixIcon');
// Add the bootstrap css file to the layout options in the backend
$GLOBALS['TL_HOOKS']['loadDataContainer'][] = array('GrixHooks', 'addBootstrapFramework');
// Output the grix html if grix is activated
$GLOBALS['TL_HOOKS']['compileArticle'][] = array('GrixHooks', 'myCompileArticle');
// Add a class to the body in the backend when editing an article with grix
$GLOBALS['TL_HOOKS']['parseBackendTemplate'][] = array('GrixHooks', 'myParseBackendTemplate');
// Ajax save function
$GLOBALS['TL_HOOKS']['executePreActions'][] = array('GrixHooks', 'grixPreAction');
$GLOBALS['TL_HOOKS']['executePostActions'][] = array('GrixHooks', 'grixPostAction');
/*
ToDo:
- title attributes with optional explanations for the css classes in the lightbox
-
*/
?>