diff --git a/src/Backend/About.php b/src/Backend/About.php index c969717..50c9e13 100644 --- a/src/Backend/About.php +++ b/src/Backend/About.php @@ -48,10 +48,10 @@ class About return array_map( function ($library) { $library = array_merge( - array( + [ 'homepage' => null, 'version' => null, - ), + ], $library ); @@ -86,30 +86,30 @@ class About $lockFile = TL_ROOT . '/composer.lock'; if (!file_exists($extFile) || !file_exists($lockFile)) { - return array(); + return []; } $extension = json_decode(file_get_contents($extFile), true); $installed = json_decode(file_get_contents($lockFile), true); - $deps = array(); + $deps = []; $version = null; foreach ($installed['packages'] as $package) { if ($package['name'] === 'netzmacht/contao-leaflet-maps') { $version = $package['version']; } elseif (isset($extension['require'][$package['name']])) { - $deps[] = array( + $deps[] = [ 'name' => $package['name'], 'version' => $package['version'], 'license' => !empty($package['license']) ? implode(', ', $package['license']) : '', 'homepage' => sprintf( 'Visit packagist', $package['name'] - ) - ); + ), + ]; } } - return array($version, $deps); + return [$version, $deps]; } } diff --git a/src/Bundle/ContaoManager/Plugin.php b/src/Bundle/ContaoManager/Plugin.php index a9facf6..8033179 100644 --- a/src/Bundle/ContaoManager/Plugin.php +++ b/src/Bundle/ContaoManager/Plugin.php @@ -36,7 +36,7 @@ class Plugin implements BundlePluginInterface return [ BundleConfig::create(NetzmachtContaoLeafletBundle::class) ->setLoadAfter([ContaoCoreBundle::class, NetzmachtContaoToolkitBundle::class]) - ->setReplace(['leaflet']) + ->setReplace(['leaflet']), ]; } } diff --git a/src/Bundle/DependencyInjection/NetzmachtContaoLeafletExtension.php b/src/Bundle/DependencyInjection/NetzmachtContaoLeafletExtension.php index ef67a2e..2dc6a92 100644 --- a/src/Bundle/DependencyInjection/NetzmachtContaoLeafletExtension.php +++ b/src/Bundle/DependencyInjection/NetzmachtContaoLeafletExtension.php @@ -33,7 +33,7 @@ class NetzmachtContaoLeafletExtension extends Extension { $loader = new YamlFileLoader( $container, - new FileLocator(dirname(__DIR__) .'/Resources/config') + new FileLocator(dirname(__DIR__) . '/Resources/config') ); // Common config, services and listeners diff --git a/src/Bundle/Resources/contao/config/config.php b/src/Bundle/Resources/contao/config/config.php index 38abba6..a823af9 100644 --- a/src/Bundle/Resources/contao/config/config.php +++ b/src/Bundle/Resources/contao/config/config.php @@ -17,42 +17,36 @@ array_insert( $GLOBALS['BE_MOD'], 1, - array( - 'leaflet' => array - ( - 'leaflet_map' => array - ( - 'tables' => array - ( + [ + 'leaflet' => [ + 'leaflet_map' => [ + 'tables' => [ 'tl_leaflet_map', 'tl_leaflet_control', - ), + ], 'icon' => 'bundles/netzmachtcontaoleaflet/img/map.png', 'stylesheet' => 'bundles/netzmachtcontaoleaflet/css/backend.css', - ), - 'leaflet_layer' => array - ( - 'tables' => array - ( + ], + 'leaflet_layer' => [ + 'tables' => [ 'tl_leaflet_layer', 'tl_leaflet_marker', 'tl_leaflet_vector', 'tl_leaflet_icon', 'tl_leaflet_style', 'tl_leaflet_popup', - ), + ], 'icon' => 'bundles/netzmachtcontaoleaflet/img/layers.png', 'stylesheet' => 'bundles/netzmachtcontaoleaflet/css/backend.css', - 'javascript' => 'bundles/netzmachtcontaoleaflet/js/backend.js' - ), - 'leaflet_about' => array - ( + 'javascript' => 'bundles/netzmachtcontaoleaflet/js/backend.js', + ], + 'leaflet_about' => [ 'callback' => Netzmacht\Contao\Leaflet\Backend\About::class, 'icon' => 'bundles/netzmachtcontaoleaflet/img/about.png', 'stylesheet' => 'bundles/netzmachtcontaoleaflet/css/about.css', - ) - ) - ) + ], + ], + ] ); /* @@ -74,5 +68,5 @@ $GLOBALS['TL_MODELS']['tl_leaflet_vector'] = \Netzmacht\Contao\Leaflet\Model\Ve $GLOBALS['TL_HOOKS']['initializeSystem'][] = [ 'netzmacht.contao_leaflet.listeners.register_libraries', - 'onInitializeSystem' + 'onInitializeSystem', ]; diff --git a/src/Bundle/Resources/contao/dca/tl_leaflet_layer.php b/src/Bundle/Resources/contao/dca/tl_leaflet_layer.php index 3f2ff03..836b266 100644 --- a/src/Bundle/Resources/contao/dca/tl_leaflet_layer.php +++ b/src/Bundle/Resources/contao/dca/tl_leaflet_layer.php @@ -861,7 +861,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [ ], 'sql' => 'mediumtext NULL', ], - 'file' => [ + 'file' => [ 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['file'], 'exclude' => true, 'inputType' => 'fileTree', diff --git a/src/Bundle/Resources/contao/languages/de/leaflet.php b/src/Bundle/Resources/contao/languages/de/leaflet.php index 8bbaeb8..ede2d01 100644 --- a/src/Bundle/Resources/contao/languages/de/leaflet.php +++ b/src/Bundle/Resources/contao/languages/de/leaflet.php @@ -3,8 +3,8 @@ * Translations are managed using Transifex. To create a new translation * or to help to maintain an existing one, please register at transifex.com. * - * @link http://help.transifex.com/intro/translating.html - * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ + * @link http://help.transifex.com/intro/translating.html + * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ * * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL * diff --git a/src/Bundle/Resources/contao/languages/de/modules.php b/src/Bundle/Resources/contao/languages/de/modules.php index 1e72d97..84f21aa 100644 --- a/src/Bundle/Resources/contao/languages/de/modules.php +++ b/src/Bundle/Resources/contao/languages/de/modules.php @@ -3,8 +3,8 @@ * Translations are managed using Transifex. To create a new translation * or to help to maintain an existing one, please register at transifex.com. * - * @link http://help.transifex.com/intro/translating.html - * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ + * @link http://help.transifex.com/intro/translating.html + * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ * * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL * diff --git a/src/Bundle/Resources/contao/languages/de/tl_content.php b/src/Bundle/Resources/contao/languages/de/tl_content.php index 7d8f63e..5681a37 100644 --- a/src/Bundle/Resources/contao/languages/de/tl_content.php +++ b/src/Bundle/Resources/contao/languages/de/tl_content.php @@ -3,8 +3,8 @@ * Translations are managed using Transifex. To create a new translation * or to help to maintain an existing one, please register at transifex.com. * - * @link http://help.transifex.com/intro/translating.html - * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ + * @link http://help.transifex.com/intro/translating.html + * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ * * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL * diff --git a/src/Bundle/Resources/contao/languages/de/tl_leaflet_control.php b/src/Bundle/Resources/contao/languages/de/tl_leaflet_control.php index 2b477aa..526a8dd 100644 --- a/src/Bundle/Resources/contao/languages/de/tl_leaflet_control.php +++ b/src/Bundle/Resources/contao/languages/de/tl_leaflet_control.php @@ -3,8 +3,8 @@ * Translations are managed using Transifex. To create a new translation * or to help to maintain an existing one, please register at transifex.com. * - * @link http://help.transifex.com/intro/translating.html - * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ + * @link http://help.transifex.com/intro/translating.html + * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ * * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL * diff --git a/src/Bundle/Resources/contao/languages/de/tl_leaflet_icon.php b/src/Bundle/Resources/contao/languages/de/tl_leaflet_icon.php index f25261d..85f126e 100644 --- a/src/Bundle/Resources/contao/languages/de/tl_leaflet_icon.php +++ b/src/Bundle/Resources/contao/languages/de/tl_leaflet_icon.php @@ -3,8 +3,8 @@ * Translations are managed using Transifex. To create a new translation * or to help to maintain an existing one, please register at transifex.com. * - * @link http://help.transifex.com/intro/translating.html - * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ + * @link http://help.transifex.com/intro/translating.html + * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ * * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL * diff --git a/src/Bundle/Resources/contao/languages/de/tl_leaflet_layer.php b/src/Bundle/Resources/contao/languages/de/tl_leaflet_layer.php index 044f407..0815d93 100644 --- a/src/Bundle/Resources/contao/languages/de/tl_leaflet_layer.php +++ b/src/Bundle/Resources/contao/languages/de/tl_leaflet_layer.php @@ -3,8 +3,8 @@ * Translations are managed using Transifex. To create a new translation * or to help to maintain an existing one, please register at transifex.com. * - * @link http://help.transifex.com/intro/translating.html - * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ + * @link http://help.transifex.com/intro/translating.html + * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ * * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL * diff --git a/src/Bundle/Resources/contao/languages/de/tl_leaflet_map.php b/src/Bundle/Resources/contao/languages/de/tl_leaflet_map.php index 65f5080..26c78e6 100644 --- a/src/Bundle/Resources/contao/languages/de/tl_leaflet_map.php +++ b/src/Bundle/Resources/contao/languages/de/tl_leaflet_map.php @@ -3,8 +3,8 @@ * Translations are managed using Transifex. To create a new translation * or to help to maintain an existing one, please register at transifex.com. * - * @link http://help.transifex.com/intro/translating.html - * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ + * @link http://help.transifex.com/intro/translating.html + * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ * * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL * diff --git a/src/Bundle/Resources/contao/languages/de/tl_leaflet_marker.php b/src/Bundle/Resources/contao/languages/de/tl_leaflet_marker.php index d98e0bc..a9ec43c 100644 --- a/src/Bundle/Resources/contao/languages/de/tl_leaflet_marker.php +++ b/src/Bundle/Resources/contao/languages/de/tl_leaflet_marker.php @@ -3,8 +3,8 @@ * Translations are managed using Transifex. To create a new translation * or to help to maintain an existing one, please register at transifex.com. * - * @link http://help.transifex.com/intro/translating.html - * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ + * @link http://help.transifex.com/intro/translating.html + * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ * * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL * diff --git a/src/Bundle/Resources/contao/languages/de/tl_leaflet_popup.php b/src/Bundle/Resources/contao/languages/de/tl_leaflet_popup.php index e7e0249..e3f782b 100644 --- a/src/Bundle/Resources/contao/languages/de/tl_leaflet_popup.php +++ b/src/Bundle/Resources/contao/languages/de/tl_leaflet_popup.php @@ -3,8 +3,8 @@ * Translations are managed using Transifex. To create a new translation * or to help to maintain an existing one, please register at transifex.com. * - * @link http://help.transifex.com/intro/translating.html - * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ + * @link http://help.transifex.com/intro/translating.html + * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ * * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL * diff --git a/src/Bundle/Resources/contao/languages/de/tl_leaflet_style.php b/src/Bundle/Resources/contao/languages/de/tl_leaflet_style.php index 32a1b0d..0602c3f 100644 --- a/src/Bundle/Resources/contao/languages/de/tl_leaflet_style.php +++ b/src/Bundle/Resources/contao/languages/de/tl_leaflet_style.php @@ -3,8 +3,8 @@ * Translations are managed using Transifex. To create a new translation * or to help to maintain an existing one, please register at transifex.com. * - * @link http://help.transifex.com/intro/translating.html - * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ + * @link http://help.transifex.com/intro/translating.html + * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ * * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL * diff --git a/src/Bundle/Resources/contao/languages/de/tl_leaflet_vector.php b/src/Bundle/Resources/contao/languages/de/tl_leaflet_vector.php index 81a76ad..5d1424e 100644 --- a/src/Bundle/Resources/contao/languages/de/tl_leaflet_vector.php +++ b/src/Bundle/Resources/contao/languages/de/tl_leaflet_vector.php @@ -3,8 +3,8 @@ * Translations are managed using Transifex. To create a new translation * or to help to maintain an existing one, please register at transifex.com. * - * @link http://help.transifex.com/intro/translating.html - * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ + * @link http://help.transifex.com/intro/translating.html + * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ * * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL * diff --git a/src/Bundle/Resources/contao/languages/de/tl_module.php b/src/Bundle/Resources/contao/languages/de/tl_module.php index 4cbe8f3..2e4f5f4 100644 --- a/src/Bundle/Resources/contao/languages/de/tl_module.php +++ b/src/Bundle/Resources/contao/languages/de/tl_module.php @@ -3,8 +3,8 @@ * Translations are managed using Transifex. To create a new translation * or to help to maintain an existing one, please register at transifex.com. * - * @link http://help.transifex.com/intro/translating.html - * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ + * @link http://help.transifex.com/intro/translating.html + * @link https://www.transifex.com/projects/p/contao-leaflet-maps/language/de/ * * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL * diff --git a/src/Bundle/Resources/contao/languages/en/modules.php b/src/Bundle/Resources/contao/languages/en/modules.php index 81c3839..f2b1520 100644 --- a/src/Bundle/Resources/contao/languages/en/modules.php +++ b/src/Bundle/Resources/contao/languages/en/modules.php @@ -25,8 +25,8 @@ $GLOBALS['TL_LANG']['MOD']['tl_leaflet_icon'] = 'Icons'; $GLOBALS['TL_LANG']['MOD']['tl_leaflet_marker'] = 'Markers'; $GLOBALS['TL_LANG']['MOD']['tl_leaflet_control'] = 'Controls'; -$GLOBALS['TL_LANG']['FMD']['leaflet'][0] = 'Leaflet Map'; -$GLOBALS['TL_LANG']['FMD']['leaflet'][1] = 'Integrate leaflet map as frontend module.'; +$GLOBALS['TL_LANG']['FMD']['leaflet'][0] = 'Leaflet Map'; +$GLOBALS['TL_LANG']['FMD']['leaflet'][1] = 'Integrate leaflet map as frontend module.'; -$GLOBALS['TL_LANG']['CTE']['leaflet'][0] = 'Leaflet Map'; -$GLOBALS['TL_LANG']['CTE']['leaflet'][1] = 'Integrate leaflet map as content element.'; +$GLOBALS['TL_LANG']['CTE']['leaflet'][0] = 'Leaflet Map'; +$GLOBALS['TL_LANG']['CTE']['leaflet'][1] = 'Integrate leaflet map as content element.'; diff --git a/src/Bundle/Resources/contao/languages/en/tl_leaflet_control.php b/src/Bundle/Resources/contao/languages/en/tl_leaflet_control.php index d831d2f..c295e58 100644 --- a/src/Bundle/Resources/contao/languages/en/tl_leaflet_control.php +++ b/src/Bundle/Resources/contao/languages/en/tl_leaflet_control.php @@ -99,5 +99,5 @@ $GLOBALS['TL_LANG']['tl_leaflet_control']['topright'][1] = 'Top right of the $GLOBALS['TL_LANG']['tl_leaflet_control']['base'][0] = 'Base layer'; $GLOBALS['TL_LANG']['tl_leaflet_control']['base'][1] = 'Base layers will be switched with radio buttons. Note that all base layers should be passed in the base layers object, but only one should be added to the map during map instantiation'; -$GLOBALS['TL_LANG']['tl_leaflet_control']['overlay'][0] = 'Overlay'; -$GLOBALS['TL_LANG']['tl_leaflet_control']['overlay'][1] = 'Overlays will be switched with checkboxes.'; +$GLOBALS['TL_LANG']['tl_leaflet_control']['overlay'][0] = 'Overlay'; +$GLOBALS['TL_LANG']['tl_leaflet_control']['overlay'][1] = 'Overlays will be switched with checkboxes.'; diff --git a/src/Bundle/Resources/contao/languages/en/tl_leaflet_map.php b/src/Bundle/Resources/contao/languages/en/tl_leaflet_map.php index d11b6f5..e1cc78c 100644 --- a/src/Bundle/Resources/contao/languages/en/tl_leaflet_map.php +++ b/src/Bundle/Resources/contao/languages/en/tl_leaflet_map.php @@ -18,91 +18,91 @@ $GLOBALS['TL_LANG']['tl_leaflet_map']['layers_legend'] = 'Default layers'; $GLOBALS['TL_LANG']['tl_leaflet_map']['expert_legend'] = 'Expert settings'; $GLOBALS['TL_LANG']['tl_leaflet_map']['behaviour_legend'] = 'Behaviour'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['new'][0] = 'Create map'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['new'][1] = 'Create new map'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['edit'][0] = 'Edit map'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['edit'][1] = 'Edit map ID %s'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['copy'][0] = 'Copy map'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['copy'][1] = 'Copy map ID %s'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['controls'][0] = 'Manage controls'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['controls'][1] = 'Manage controls of map ID %s'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['delete'][0] = 'Delete map'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['delete'][1] = 'Delete map ID %s'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['show'][0] = 'Show details'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['show'][1] = 'Show map ID %s details'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['new'][0] = 'Create map'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['new'][1] = 'Create new map'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['edit'][0] = 'Edit map'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['edit'][1] = 'Edit map ID %s'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['copy'][0] = 'Copy map'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['copy'][1] = 'Copy map ID %s'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['controls'][0] = 'Manage controls'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['controls'][1] = 'Manage controls of map ID %s'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['delete'][0] = 'Delete map'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['delete'][1] = 'Delete map ID %s'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['show'][0] = 'Show details'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['show'][1] = 'Show map ID %s details'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['title'][0] = 'Title'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['title'][1] = 'Title of the map.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['alias'][0] = 'Alias'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['alias'][1] = 'Alias of the map.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['center'][0] = 'Center'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['center'][1] = 'Initial geographical center of the map. Comma separated coordinates.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['dragging'][0] = 'Dragging'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['dragging'][1] = 'Whether the map be draggable with mouse/touch or not.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['touchZoom'][0] = 'Touch zoom'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['touchZoom'][1] = 'Whether the map can be zoomed by touch-dragging with two fingers.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['scrollWheelZoom'][0] = 'Scroll wheel zoom'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['scrollWheelZoom'][1] = 'Whether the map can be zoomed by using the mouse wheel.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['doubleClickZoom'][0] = 'Double click zoom'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['doubleClickZoom'][1] = 'Whether the map can be zoomed in by double clicking on it and zoomed out by double clicking while holding shift.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['boxZoom'][0] = 'Box zoom'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['boxZoom'][1] = 'Whether the map can be zoomed to a rectangular area specified by dragging the mouse while pressing shift.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['tap'][0] = 'Instant taps'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['tap'][1] = 'Enables mobile hacks for supporting instant taps.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['trackResize'][0] = 'Track window resize'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['trackResize'][1] = 'Whether the map automatically handles browser window resize to update itself.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['closeOnClick'][0] = 'Close popup on click'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['closeOnClick'][1] = 'Disable if you don\'t want popups to close when user clicks the map'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['keyboard'][0] = 'Keyboard navigation'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['keyboard'][1] = 'Makes the map focusable and allows users to navigate the map with keyboard arrows and +/- keys'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['keyboardPanOffset'][0] = 'Keyboard pan offset'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['keyboardPanOffset'][1] = 'Amount of pixels to pan when pressing an arrow key.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['keyboardZoomOffset'][0] = 'Keyboard zoom offset'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['keyboardZoomOffset'][1] = 'Number of zoom levels to change when pressing + or - key.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['zoom'][0] = 'Zoom level'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['zoom'][1] = 'Initial map zoom.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['minZoom'][0] = 'Minimum zoom level'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['minZoom'][1] = 'Minimum zoom level of the map. Overrides any minZoom set on map layers.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['maxZoom'][0] = 'Maximum zoom level'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['maxZoom'][1] = 'Maximum zoom level of the map. This overrides any maxZoom set on map layers.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomSnap'][0] = 'Zoom snap'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomSnap'][1] = 'Forces the map\'s zoom level to always be a multiple of the number. Default is 1.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomDelta'][0] = 'Zoom delta'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomDelta'][1] = 'Controls how much the map\'s zoom level will change after zoom in or zoom out.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomControl'][0] = 'Add default zoom control'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomControl'][1] = 'Whether the zoom control is added to the map by default.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['bounceAtZoomLimits'][0] = 'Bounce at zoom limits'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['bounceAtZoomLimits'][1] = 'Disable if you don\'t want the map to zoom beyond min/max zoom and then bounce back when pinch-zooming'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['options'][0] = 'Extra options'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['options'][1] = 'Add extra map options as valid json. See http://leafletjs.com/reference.html#map-options'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['adjustZoomExtra'][0] = 'Adjust extra zoom settings'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['adjustZoomExtra'][1] = 'Enable if you want to adjust minimum and maximum zoom as well'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['layers'][0] = 'Default layers'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['layers'][1] = 'Inital visible layers of the map. For optional layers use the layers control.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['adjustBounds'][0] = 'Adjust bounds'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['adjustBounds'][1] = 'If enabled the map will fit into bounds of data layers which are marked to affect the map bounds.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['locate'][0] = 'Locate user position'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['locate'][1] = 'Initial map zoom.Tries to locate the user using the Geolocation API.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['locateWatch'][0] = 'Watch continuously'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['locateWatch'][1] = 'If true, starts continous watching of location changes '; -$GLOBALS['TL_LANG']['tl_leaflet_map']['locateSetView'][0] = 'Update map center'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['locateSetView'][1] = 'If enabled, automatically sets the map view to the user location. Otherwise only the locationfound event is triggered.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['locateMaxZoom'][0] = 'Locate max zoom'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['locateMaxZoom'][1] = 'Max zoom when setting updating map view.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['locateTimeout'][0] = 'Locate timeout'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['locateTimeout'][1] = 'Number of milliseconds to wait for a response from geolocation.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['enableHighAccuracy'][0] = 'High accuracy'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['enableHighAccuracy'][1] = 'Enables high accuracy, see description in the W3C spec.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['locateMaximumAge'][0] = 'Locate maximum age'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['locateMaximumAge'][1] = 'Maximum age of detected location in milliseconds. Use cached value if time has not passed.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['dynamicLoad'][0] = 'Load data dynamically in bounds'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['dynamicLoad'][1] = 'If enabled the map requests data from the layers for the current bounds only and make a new request if bounds has changed.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['boundsPadding'][0] = 'Bounds padding'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['boundsPadding'][1] = 'Padding being used then applying bounds. Use comma separated values. If 2 values are given the padding option is set. If 4 values are given paddingTopLeft and paddingBottomRight is set.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['cache'][0] = 'Enable cache'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['cache'][1] = 'If enabled the generated map javascript is cached.'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['cacheLifeTime'][0] = 'Cache lifetime'; -$GLOBALS['TL_LANG']['tl_leaflet_map']['cacheLifeTime'][1] = 'Indicates how long a cache entry is valid in seconds.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['title'][0] = 'Title'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['title'][1] = 'Title of the map.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['alias'][0] = 'Alias'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['alias'][1] = 'Alias of the map.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['center'][0] = 'Center'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['center'][1] = 'Initial geographical center of the map. Comma separated coordinates.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['dragging'][0] = 'Dragging'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['dragging'][1] = 'Whether the map be draggable with mouse/touch or not.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['touchZoom'][0] = 'Touch zoom'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['touchZoom'][1] = 'Whether the map can be zoomed by touch-dragging with two fingers.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['scrollWheelZoom'][0] = 'Scroll wheel zoom'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['scrollWheelZoom'][1] = 'Whether the map can be zoomed by using the mouse wheel.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['doubleClickZoom'][0] = 'Double click zoom'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['doubleClickZoom'][1] = 'Whether the map can be zoomed in by double clicking on it and zoomed out by double clicking while holding shift.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['boxZoom'][0] = 'Box zoom'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['boxZoom'][1] = 'Whether the map can be zoomed to a rectangular area specified by dragging the mouse while pressing shift.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['tap'][0] = 'Instant taps'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['tap'][1] = 'Enables mobile hacks for supporting instant taps.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['trackResize'][0] = 'Track window resize'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['trackResize'][1] = 'Whether the map automatically handles browser window resize to update itself.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['closeOnClick'][0] = 'Close popup on click'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['closeOnClick'][1] = 'Disable if you don\'t want popups to close when user clicks the map'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['keyboard'][0] = 'Keyboard navigation'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['keyboard'][1] = 'Makes the map focusable and allows users to navigate the map with keyboard arrows and +/- keys'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['keyboardPanOffset'][0] = 'Keyboard pan offset'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['keyboardPanOffset'][1] = 'Amount of pixels to pan when pressing an arrow key.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['keyboardZoomOffset'][0] = 'Keyboard zoom offset'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['keyboardZoomOffset'][1] = 'Number of zoom levels to change when pressing + or - key.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['zoom'][0] = 'Zoom level'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['zoom'][1] = 'Initial map zoom.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['minZoom'][0] = 'Minimum zoom level'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['minZoom'][1] = 'Minimum zoom level of the map. Overrides any minZoom set on map layers.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['maxZoom'][0] = 'Maximum zoom level'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['maxZoom'][1] = 'Maximum zoom level of the map. This overrides any maxZoom set on map layers.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomSnap'][0] = 'Zoom snap'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomSnap'][1] = 'Forces the map\'s zoom level to always be a multiple of the number. Default is 1.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomDelta'][0] = 'Zoom delta'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomDelta'][1] = 'Controls how much the map\'s zoom level will change after zoom in or zoom out.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomControl'][0] = 'Add default zoom control'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomControl'][1] = 'Whether the zoom control is added to the map by default.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['bounceAtZoomLimits'][0] = 'Bounce at zoom limits'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['bounceAtZoomLimits'][1] = 'Disable if you don\'t want the map to zoom beyond min/max zoom and then bounce back when pinch-zooming'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['options'][0] = 'Extra options'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['options'][1] = 'Add extra map options as valid json. See http://leafletjs.com/reference.html#map-options'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['adjustZoomExtra'][0] = 'Adjust extra zoom settings'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['adjustZoomExtra'][1] = 'Enable if you want to adjust minimum and maximum zoom as well'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['layers'][0] = 'Default layers'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['layers'][1] = 'Inital visible layers of the map. For optional layers use the layers control.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['adjustBounds'][0] = 'Adjust bounds'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['adjustBounds'][1] = 'If enabled the map will fit into bounds of data layers which are marked to affect the map bounds.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['locate'][0] = 'Locate user position'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['locate'][1] = 'Initial map zoom.Tries to locate the user using the Geolocation API.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['locateWatch'][0] = 'Watch continuously'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['locateWatch'][1] = 'If true, starts continous watching of location changes '; +$GLOBALS['TL_LANG']['tl_leaflet_map']['locateSetView'][0] = 'Update map center'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['locateSetView'][1] = 'If enabled, automatically sets the map view to the user location. Otherwise only the locationfound event is triggered.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['locateMaxZoom'][0] = 'Locate max zoom'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['locateMaxZoom'][1] = 'Max zoom when setting updating map view.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['locateTimeout'][0] = 'Locate timeout'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['locateTimeout'][1] = 'Number of milliseconds to wait for a response from geolocation.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['enableHighAccuracy'][0] = 'High accuracy'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['enableHighAccuracy'][1] = 'Enables high accuracy, see description in the W3C spec.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['locateMaximumAge'][0] = 'Locate maximum age'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['locateMaximumAge'][1] = 'Maximum age of detected location in milliseconds. Use cached value if time has not passed.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['dynamicLoad'][0] = 'Load data dynamically in bounds'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['dynamicLoad'][1] = 'If enabled the map requests data from the layers for the current bounds only and make a new request if bounds has changed.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['boundsPadding'][0] = 'Bounds padding'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['boundsPadding'][1] = 'Padding being used then applying bounds. Use comma separated values. If 2 values are given the padding option is set. If 4 values are given paddingTopLeft and paddingBottomRight is set.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['cache'][0] = 'Enable cache'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['cache'][1] = 'If enabled the generated map javascript is cached.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['cacheLifeTime'][0] = 'Cache lifetime'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['cacheLifeTime'][1] = 'Indicates how long a cache entry is valid in seconds.'; $GLOBALS['TL_LANG']['tl_leaflet_map']['adjustBoundsOptions']['load'][0] = 'At map initialization'; $GLOBALS['TL_LANG']['tl_leaflet_map']['adjustBoundsOptions']['load'][1] = 'Calculate bounds when the map is initialized. All static and already loaded deferred featured are included.'; diff --git a/src/Bundle/Resources/contao/languages/en/tl_leaflet_marker.php b/src/Bundle/Resources/contao/languages/en/tl_leaflet_marker.php index b4bf310..03e0398 100644 --- a/src/Bundle/Resources/contao/languages/en/tl_leaflet_marker.php +++ b/src/Bundle/Resources/contao/languages/en/tl_leaflet_marker.php @@ -14,7 +14,7 @@ $GLOBALS['TL_LANG']['tl_leaflet_marker']['title_legend'] = 'Title and type'; $GLOBALS['TL_LANG']['tl_leaflet_marker']['content_legend'] = 'Content'; $GLOBALS['TL_LANG']['tl_leaflet_marker']['config_legend'] = 'Configuration'; $GLOBALS['TL_LANG']['tl_leaflet_marker']['active_legend'] = 'Activation'; -$GLOBALS['TL_LANG']['tl_leaflet_marker']['expert_legend'] = 'Expert settings'; +$GLOBALS['TL_LANG']['tl_leaflet_marker']['expert_legend'] = 'Expert settings'; $GLOBALS['TL_LANG']['tl_leaflet_marker']['new'][0] = 'Create marker'; diff --git a/src/Bundle/Resources/contao/languages/en/tl_leaflet_vector.php b/src/Bundle/Resources/contao/languages/en/tl_leaflet_vector.php index 0d57c68..5244899 100644 --- a/src/Bundle/Resources/contao/languages/en/tl_leaflet_vector.php +++ b/src/Bundle/Resources/contao/languages/en/tl_leaflet_vector.php @@ -15,7 +15,7 @@ $GLOBALS['TL_LANG']['tl_leaflet_vector']['active_legend'] = 'Activation'; $GLOBALS['TL_LANG']['tl_leaflet_vector']['config_legend'] = 'Configuration'; $GLOBALS['TL_LANG']['tl_leaflet_vector']['data_legend'] = 'Vector data'; $GLOBALS['TL_LANG']['tl_leaflet_vector']['popup_legend'] = 'Popup'; -$GLOBALS['TL_LANG']['tl_leaflet_vector']['expert_legend'] = 'Expert settings'; +$GLOBALS['TL_LANG']['tl_leaflet_vector']['expert_legend'] = 'Expert settings'; $GLOBALS['TL_LANG']['tl_leaflet_vector']['new'][0] = 'Create vector'; diff --git a/src/Bundle/Resources/contao/templates/be_leaflet_about.html5 b/src/Bundle/Resources/contao/templates/be_leaflet_about.html5 index c859416..dfa1178 100644 --- a/src/Bundle/Resources/contao/templates/be_leaflet_about.html5 +++ b/src/Bundle/Resources/contao/templates/be_leaflet_about.html5 @@ -1,125 +1,140 @@
- The Leaflet maps integration for Contao CMS is an Open Source Software license under the LGPL 3.0. - This extension is only exists because of great other Open Source Software which it heavenly depends on. -
-- This software ships with an visible attribution to netzmacht creative in the map attribution control. - If you want to remove this attribution, you have to purchase a commercial license. - For more details visit the project website. -
+
-
- netzmacht
- David Molineus
-
- DAB Bank München
- IBAN: DE52701204008354237003
- BIC: DABBDEMMXXX
-
If you found a bug, got some troubles or have a feature request - feel free to open an issue.
- -There are many ways you can contribute. Translations, - documentation or code contributions are welcome. +
+ The Leaflet maps integration for Contao CMS is an Open Source Software license under the LGPL 3.0. + This extension is only exists because of great other Open Source Software which it heavenly depends on. +
++ This software ships with an visible attribution to netzmacht creative in the map attribution + control. + If you want to remove this attribution, you have to purchase a commercial license. + For more details visit the project + website.
-Contao Leaflet is not feature complete. Have a look at the list of planned feature and support them.
- +
+
+ netzmacht
+ David Molineus
+
+ DAB Bank München
+ IBAN: DE52701204008354237003
+ BIC: DABBDEMMXXX
+
If you have special requirements you can hire me for an individual development.
- +If you found a bug, got some troubles or have a feature request - feel free to open an issue.
+ +There are many ways you can contribute. Translations, + documentation or code contributions are welcome. +
+ +Contao Leaflet is not feature complete. Have a look at the list of planned feature and support + them.
+ +If you want to remove the attribution in the attribution control, you can purchase a commercial license.
- +If you have special requirements you can hire me for an individual development.
+ +If you want to remove the attribution in the attribution control, you can purchase a commercial + license.
+ +| Name | -Version | -License | -Homepage | -
|---|---|---|---|
| Libraries | |||
| - | - | - | - |
| Graphics | -|||
| Farm Fresh-Web Icons | -3.9.2 | -CC BY 3.0 US | -fatcow.com/free-icons | -
| Web Blog Icons by SEM Labs | -3.9.2 | -CC BY 4.0 | -semlabs.co.uk | -
| Dependencies | |||
| - | - | - | - |
| Name | +Version | +License | +Homepage | +
|---|---|---|---|
| Libraries | +|||
| + | + | + | + |
| Graphics | +|||
| Farm Fresh-Web Icons | +3.9.2 | +CC BY 3.0 US | +fatcow.com/free-icons | +
| Web Blog Icons by SEM Labs | +3.9.2 | +CC BY 4.0 | +semlabs.co.uk | +
| Dependencies | +|||
| + | + | + | + |