1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,68 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+/** |
|
4 |
+ * eSales Media reveal toolkit for Contao Open Source CMS |
|
5 |
+ * |
|
6 |
+ * Copyright (C) 2015 eSales Media |
|
7 |
+ * |
|
8 |
+ * @package eSM_onePage |
|
9 |
+ * @link http://www.esales-media.de |
|
10 |
+ * @license commercial |
|
11 |
+ * |
|
12 |
+ * @author Benjamin Roth <benjamin@esales-media.de> |
|
13 |
+ */ |
|
14 |
+ |
|
15 |
+/** |
|
16 |
+ * Table tl_content |
|
17 |
+ */ |
|
18 |
+/** |
|
19 |
+ * Add palettes to tl_content |
|
20 |
+ */ |
|
21 |
+$GLOBALS['TL_DCA']['tl_content']['palettes']['__selector__'][] = 'eSM_rv_reveal'; |
|
22 |
+$GLOBALS['TL_DCA']['tl_content']['subpalettes']['eSM_rv_reveal'] = 'eSM_rv_animation,eSM_rv_duration,eSM_rv_delay'; |
|
23 |
+ |
|
24 |
+ |
|
25 |
+/** |
|
26 |
+ * Add fields to tl_content |
|
27 |
+ */ |
|
28 |
+ |
|
29 |
+$GLOBALS['TL_DCA']['tl_content']['fields']['eSM_rv_animation'] = array |
|
30 |
+( |
|
31 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_content']['eSM_rv_animation'], |
|
32 |
+ 'exclude' => true, |
|
33 |
+ 'inputType' => 'select', |
|
34 |
+ 'options' => $GLOBALS['REVEAL']['animationClasses'], |
|
35 |
+ 'eval' => array('tl_class'=>'w50','mandatory'=>true,'showBlankOption'=>true), |
|
36 |
+ 'sql' => "varchar(32) NOT NULL default ''" |
|
37 |
+); |
|
38 |
+ |
|
39 |
+$GLOBALS['TL_DCA']['tl_content']['fields']['eSM_rv_delay'] = array |
|
40 |
+( |
|
41 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_content']['eSM_rv_delay'], |
|
42 |
+ 'exclude' => true, |
|
43 |
+ 'inputType' => 'select', |
|
44 |
+ 'options' => $GLOBALS['REVEAL']['delayClasses'], |
|
45 |
+ 'reference' => $GLOBALS['TL_LANG']['REF']['reveal']['ms'], |
|
46 |
+ 'eval' => array('tl_class'=>'w50','includeBlankOption'=>true), |
|
47 |
+ 'sql' => "varchar(32) NOT NULL default ''" |
|
48 |
+); |
|
49 |
+ |
|
50 |
+$GLOBALS['TL_DCA']['tl_content']['fields']['eSM_rv_duration'] = array |
|
51 |
+( |
|
52 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_content']['eSM_rv_duration'], |
|
53 |
+ 'exclude' => true, |
|
54 |
+ 'inputType' => 'select', |
|
55 |
+ 'options' => $GLOBALS['REVEAL']['durationClasses'], |
|
56 |
+ 'reference' => $GLOBALS['TL_LANG']['REF']['reveal']['ms'], |
|
57 |
+ 'eval' => array('tl_class'=>'w50','includeBlankOption'=>true), |
|
58 |
+ 'sql' => "varchar(32) NOT NULL default ''" |
|
59 |
+); |
|
60 |
+ |
|
61 |
+$GLOBALS['TL_DCA']['tl_content']['fields']['eSM_rv_reveal'] = array |
|
62 |
+( |
|
63 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_content']['eSM_rv_reveal'], |
|
64 |
+ 'exclude' => true, |
|
65 |
+ 'inputType' => 'checkbox', |
|
66 |
+ 'eval' => array('tl_class'=>'w50 m12','submitOnChange'=>true), |
|
67 |
+ 'sql' => "char(1) NOT NULL default ''" |
|
68 |
+); |