1
+ <?php
2
+
3
+ /**
4
+ * Contao Open Source CMS
5
+ * Copyright (c) 2005-2015 Leo Feyer
6
+ *
7
+ * @package semantic_html5
8
+ * @copyright MEN AT WORK 2016
9
+ * @author David Maack <[email protected] >
10
+ * @license LGPL-3.0+
11
+ */
12
+
13
+ /**
14
+ * Palettes
15
+ */
16
+ $ GLOBALS ['TL_DCA ' ]['tl_content ' ]['palettes ' ]['sHtml5Start ' ] = '{type_legend},type,headline;{html5_legend},sh5_type,sh5_additional;{protected_legend:hide},protected;{expert_legend:hide},guests,invisible,cssID,space ' ;
17
+
18
+
19
+ /**
20
+ * Callbacks
21
+ */
22
+ $ GLOBALS ['TL_DCA ' ]['tl_content ' ]['config ' ]['onsubmit_callback ' ][] = array ('SemanticHTML5\Backend\Callbacks ' , 'onsubmitCallback ' );
23
+ $ GLOBALS ['TL_DCA ' ]['tl_content ' ]['config ' ]['ondelete_callback ' ][] = array ('SemanticHTML5\Backend\Callbacks ' , 'ondeleteCallback ' );
24
+ $ GLOBALS ['TL_DCA ' ]['tl_content ' ]['config ' ]['oncopy_callback ' ][] = array ('SemanticHTML5\Backend\Callbacks ' , 'oncopyContentCallback ' );
25
+
26
+ /**
27
+ * Fields
28
+ */
29
+ $ GLOBALS ['TL_DCA ' ]['tl_content ' ]['fields ' ]['sh5_type ' ] = array (
30
+ 'label ' => &$ GLOBALS ['TL_LANG ' ]['tl_content ' ]['sh5_type ' ],
31
+ 'inputType ' => 'select ' ,
32
+ 'options_callback ' => array ('SemanticHTML5\Backend\Callbacks ' , 'getHtml5Tags ' ),
33
+ 'eval ' => array (
34
+ 'submitOnChange ' => true ,
35
+ 'mandatory ' => true ,
36
+ 'includeBlankOption ' => true
37
+ ),
38
+ 'sql ' => "varchar(64) NOT NULL default '' "
39
+ );
40
+
41
+ $ GLOBALS ['TL_DCA ' ]['tl_content ' ]['fields ' ]['sh5_additional ' ] = array (
42
+ 'label ' => &$ GLOBALS ['TL_LANG ' ]['tl_content ' ]['sh5_additional ' ],
43
+ 'exclude ' => true ,
44
+ 'inputType ' => 'multiColumnWizard ' ,
45
+ 'sql ' => "blob NULL " ,
46
+ 'eval ' => array (
47
+ 'tl_class ' => 'clr ' ,
48
+ 'columnFields ' => array (
49
+ 'property ' => array (
50
+ 'label ' => &$ GLOBALS ['TL_LANG ' ]['tl_content ' ]['sh5_additional ' ]['property ' ],
51
+ 'inputType ' => 'text ' ,
52
+ 'eval ' => array (
53
+ 'style ' => 'width:290px ' ,
54
+ 'nospace ' => true ,
55
+ 'rgxp ' => 'alnum '
56
+ )
57
+ ),
58
+ 'value ' => array (
59
+ 'label ' => &$ GLOBALS ['TL_LANG ' ]['tl_content ' ]['sh5_additional ' ]['value ' ],
60
+ 'inputType ' => 'text ' ,
61
+ 'eval ' => array (
62
+ 'style ' => 'width:290px '
63
+ )
64
+ ),
65
+ ),
66
+ ),
67
+ );
68
+
69
+ $ GLOBALS ['TL_DCA ' ]['tl_content ' ]['fields ' ]['sh5_pid ' ] = array (
70
+ 'inputType ' => 'text ' ,
71
+ 'sql ' => "int(10) unsigned NOT NULL default '0' "
72
+ );
0 commit comments