* @copyright 2016-2017 netzmacht David Molineus. All rights reserved. * @license LGPL-3.0 https://github.com/netzmacht/contao-leaflet-maps/blob/master/LICENSE * @filesource */ use Netzmacht\Contao\Toolkit\Component\ContentElement\ContentElementDecorator; use Netzmacht\Contao\Toolkit\Component\Module\ModuleDecorator; /* * Backend module. */ array_insert( $GLOBALS['BE_MOD'], 1, array( 'leaflet' => array ( 'leaflet_map' => array ( 'tables' => array ( 'tl_leaflet_map', 'tl_leaflet_control', ), 'icon' => 'system/modules/leaflet/assets/img/map.png', 'stylesheet' => 'system/modules/leaflet/assets/css/backend.css', ), 'leaflet_layer' => array ( 'tables' => array ( 'tl_leaflet_layer', 'tl_leaflet_marker', 'tl_leaflet_vector', 'tl_leaflet_icon', 'tl_leaflet_style', 'tl_leaflet_popup', ), 'icon' => 'system/modules/leaflet/assets/img/layers.png', 'stylesheet' => 'system/modules/leaflet/assets/css/backend.css', ), 'leaflet_about' => array ( 'callback' => 'Netzmacht\Contao\Leaflet\Backend\About', 'icon' => 'system/modules/leaflet/assets/img/about.png', 'stylesheet' => 'system/modules/leaflet/assets/css/about.css', ) ) ) ); /* * Content elements. */ $GLOBALS['TL_CTE']['includes']['leaflet'] = ContentElementDecorator::class; /* * Frontend modules */ $GLOBALS['FE_MOD']['includes']['leaflet'] = ModuleDecorator::class; /* * Models. */ $GLOBALS['TL_MODELS']['tl_leaflet_control'] = \Netzmacht\Contao\Leaflet\Model\ControlModel::class; $GLOBALS['TL_MODELS']['tl_leaflet_icon'] = \Netzmacht\Contao\Leaflet\Model\IconModel::class; $GLOBALS['TL_MODELS']['tl_leaflet_layer'] = \Netzmacht\Contao\Leaflet\Model\LayerModel::class; $GLOBALS['TL_MODELS']['tl_leaflet_map'] = \Netzmacht\Contao\Leaflet\Model\MapModel::class; $GLOBALS['TL_MODELS']['tl_leaflet_marker'] = \Netzmacht\Contao\Leaflet\Model\MarkerModel::class; $GLOBALS['TL_MODELS']['tl_leaflet_popup'] = \Netzmacht\Contao\Leaflet\Model\PopupModel::class; $GLOBALS['TL_MODELS']['tl_leaflet_style'] = \Netzmacht\Contao\Leaflet\Model\StyleModel::class; $GLOBALS['TL_MODELS']['tl_leaflet_vector'] = \Netzmacht\Contao\Leaflet\Model\VectorModel::class;