Extract libraries to an separate extension.

This commit is contained in:
David Molineus
2015-01-10 12:55:47 +01:00
parent 61fd452a48
commit a9b6486af2
28 changed files with 0 additions and 12093 deletions

View File

@@ -245,64 +245,3 @@ $GLOBALS['LEAFLET_VECTORS'] = array
* Leaflet tile layer providers.
*/
require_once TL_ROOT . '/system/modules/leaflet/config/leaflet_providers.php';
/*
* Leaflet assets.
*
* The leaflet definition are aware of the required javascript libraries. Register the assets so that they are
* loaded automatically.
*
* Each entry is an array of 2 values. The first is the resource. The second is a type. Supported types are:
* - url: An valid url.
* - file: An file path relative to the Contao Root.
* - source: Inline css/javascript.
*
* You don't have to define it as array if you simply add a file. Do not add |static and or media type flag to it.
* It's getting added by default if not being in debug mode.
*/
$GLOBALS['LEAFLET_LIBRARIES'] = array
(
'leaflet' => array
(
'name' => 'Leaflet',
'version' => '0.7.3',
'license' => '<a href="https://github.com/Leaflet/Leaflet/blob/master/LICENSE" target="_blank">BSD-2-Clause</a>',
'homepage' => 'http://leafletjs.com',
'css' => 'assets/leaflet/libs/leaflet/leaflet.css',
'javascript' => 'assets/leaflet/libs/leaflet/leaflet.js'
),
'leaflet-providers' => array
(
'name' => 'Leaflet-providers',
'version' => '1.0.12',
'license' => '<a href="https://github.com/leaflet-extras/leaflet-providers/blob/master/license.md" target="_blank">BSD-2-Clause</a>',
'homepage' => 'http://leaflet-extras.github.io/leaflet-providers',
'javascript' => 'assets/leaflet/libs/leaflet-providers/leaflet-providers.js'
),
'leaflet-ajax' => array
(
'name' => 'Leaflet-ajax',
'version' => '1.1.0',
'license' => '<a href="https://github.com/calvinmetcalf/leaflet-ajax/blob/master/license.md" target="_blank">MIT</a>',
'homepage' => 'https://github.com/calvinmetcalf/leaflet-ajax',
'javascript' => 'assets/leaflet/libs/leaflet-ajax/leaflet.ajax.min.js'
),
'leaflet-loading' => array
(
'name' => 'Leaflet.loading',
'version' => '0.1.13 ',
'license' => '<a href="https://github.com/ebrelsford/Leaflet.loading/blob/master/LICENSE" target="_blank">MIT</a>',
'homepage' => 'https://github.com/ebrelsford/Leaflet.loading',
'css' => 'assets/leaflet/libs/leaflet-loading/Control.Loading.css',
'javascript' => 'assets/leaflet/libs/leaflet-loading/Control.Loading.js'
),
'spin.js' => array
(
'name' => 'spin.js',
'version' => '2.0.2',
'license' => '<a href="https://github.com/fgnass/spin.js/blob/master/LICENSE.txt" target="_blank">MIT</a>',
'homepage' => 'http://fgnass.github.io/spin.js',
'javascript' => 'assets/leaflet/libs/spin-js/spin.min.js'
)
);