diff --git a/CREDITS.md b/CREDITS.md deleted file mode 100644 index 1b0865b..0000000 --- a/CREDITS.md +++ /dev/null @@ -1,5 +0,0 @@ - - -Layers icon -[Fatcow Web Hosting](http://www.fatcow.com/free-icons) -http://creativecommons.org/licenses/by/4.0/ diff --git a/README.md b/README.md index ed86259..5dc2fc1 100644 --- a/README.md +++ b/README.md @@ -48,3 +48,6 @@ Credits The integrated icons are part of the [Farm Fresh Web Icons](http://www.fatcow.com/free-icons) and are licensed under the [CC BY 3.0 US](http://creativecommons.org/licenses/by/3.0/us/) + +The about icon is part of the [Web Blog Icons by SEM Labs](http://semlabs.co.uk/) and is licensed under the +[CC BY 4.0](http://creativecommons.org/licenses/by/4.0/). diff --git a/module/config/autoload.php b/module/config/autoload.php index 1e379b5..1c81ec4 100644 --- a/module/config/autoload.php +++ b/module/config/autoload.php @@ -16,6 +16,6 @@ TemplateLoader::addFiles( 'leaflet_map_html' => 'system/modules/leaflet/templates', 'mod_leaflet_map' => 'system/modules/leaflet/templates', 'be_leaflet_geocode' => 'system/modules/leaflet/templates', - 'be_leaflet_credits' => 'system/modules/leaflet/templates', + 'be_leaflet_about' => 'system/modules/leaflet/templates', ) ); diff --git a/module/templates/be_leaflet_credits.html5 b/module/templates/be_leaflet_about.html5 similarity index 82% rename from module/templates/be_leaflet_credits.html5 rename to module/templates/be_leaflet_about.html5 index 982e710..1811cf8 100644 --- a/module/templates/be_leaflet_credits.html5 +++ b/module/templates/be_leaflet_about.html5 @@ -13,7 +13,7 @@
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 see the project website. + For more details visit the project website.
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 have special requirements you can hire me for an individual development.
diff --git a/src/Netzmacht/Contao/Leaflet/Backend/About.php b/src/Netzmacht/Contao/Leaflet/Backend/About.php index a2185a9..871ed0b 100644 --- a/src/Netzmacht/Contao/Leaflet/Backend/About.php +++ b/src/Netzmacht/Contao/Leaflet/Backend/About.php @@ -25,7 +25,7 @@ class About */ public function generate() { - $template = new \BackendTemplate('be_leaflet_credits'); + $template = new \BackendTemplate('be_leaflet_about'); $template->headline = 'Leaftlet maps integration for Contao CMS'; $template->libraries = $this->getLibraries(); @@ -81,22 +81,22 @@ class About */ private function extractFromComposer() { - $local = TL_ROOT . '/composer/vendor/netzmacht/contao-leaflet-maps/composer.json'; - $composer = TL_ROOT . '/composer/composer.lock'; + $extFile = TL_ROOT . '/composer/vendor/netzmacht/contao-leaflet-maps/composer.json'; + $lockFile = TL_ROOT . '/composer/composer.lock'; - if (!file_exists($local)) { + if (!file_exists($extFile) || !file_exists($lockFile)) { return array(); } - $local = json_decode(file_get_contents($local), true); - $installed = json_decode(file_get_contents($composer), true); + $extension = json_decode(file_get_contents($extFile), true); + $installed = json_decode(file_get_contents($lockFile), true); $deps = array(); $version = null; foreach ($installed['packages'] as $package) { if ($package['name'] === 'netzmacht/contao-leaflet-maps') { $version = $package['version']; - } elseif (isset($local['require'][$package['name']])) { + } elseif (isset($extension['require'][$package['name']])) { $deps[] = array( 'name' => $package['name'], 'version' => $package['version'],