11<?php
2+
3+ declare (strict_types=1 );
4+
5+ /*
6+ * This file is part of Contao News Popup.
7+ *
8+ * @package contao-news-popup
9+ * @license MIT
10+ * @author Daniele Sciannimanica <https://github.com/doishub>
11+ * @copyright Oveleon <https://www.oveleon.de/>
12+ */
13+
14+ use Oveleon \ContaoNewsPopup \Popup ;
15+
216// Palette
317$ GLOBALS ['TL_DCA ' ]['tl_module ' ]['palettes ' ]['newspopup ' ] = '{title_legend},name,headline,type;{config_legend},news_archives,news_readerModule,news_featured,news_order;{template_legend:hide},news_metaFields,news_template,customTpl,news_popup_placement;{image_legend:hide},imgSize;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID ' ;
418
519// Fields
6- $ GLOBALS ['TL_DCA ' ]['tl_module ' ]['fields ' ]['news_popup_placement ' ] = array
7- (
8- 'exclude ' => true ,
9- 'inputType ' => 'select ' ,
10- 'options ' => ['top-left ' , 'top-center ' , 'top-right ' , 'bottom-left ' , 'bottom-center ' , 'bottom-right ' ],
11- 'reference ' => &$ GLOBALS ['TL_LANG ' ]['tl_module ' ],
12- 'eval ' => array ('tl_class ' =>'w50 clr ' ),
13- 'sql ' => "varchar(16) NOT NULL default 'bottom-right' "
14- );
15-
20+ $ GLOBALS ['TL_DCA ' ]['tl_module ' ]['fields ' ]['news_popup_placement ' ] = [
21+ 'exclude ' => true ,
22+ 'inputType ' => 'select ' ,
23+ 'options ' => ['top-left ' , 'top-center ' , 'top-right ' , 'bottom-left ' , 'bottom-center ' , 'bottom-right ' ],
24+ 'reference ' => &$ GLOBALS ['TL_LANG ' ]['tl_module ' ], 'eval ' => ['tl_class ' => 'w50 clr ' ],
25+ 'sql ' => "varchar(16) NOT NULL default 'bottom-right' "
26+ ];
1627
1728// Field callback
18- $ GLOBALS ['TL_DCA ' ]['tl_module ' ]['fields ' ]['news_template ' ]['load_callback ' ][] = [Oveleon \ ContaoNewsPopup \ Popup::class, 'onLoadModuleTemplate ' ];
29+ $ GLOBALS ['TL_DCA ' ]['tl_module ' ]['fields ' ]['news_template ' ]['load_callback ' ][] = [Popup::class, 'onLoadModuleTemplate ' ];
0 commit comments