From 0ae1a6f26fe048b781e619c0dbbe76a7374349c6 Mon Sep 17 00:00:00 2001 From: Matthias Eilers Date: Sat, 21 Oct 2017 12:13:13 +0200 Subject: [PATCH] add some more inserttags --- Classes/Contao/Hooks/con4gisInsertTags.php | 12 +++++++ Resources/contao/composer.json | 19 ++++++---- Resources/contao/templates/be_c4g_info.html5 | 38 ++++++++++---------- 3 files changed, 44 insertions(+), 25 deletions(-) diff --git a/Classes/Contao/Hooks/con4gisInsertTags.php b/Classes/Contao/Hooks/con4gisInsertTags.php index a1822594..97dc1fdd 100755 --- a/Classes/Contao/Hooks/con4gisInsertTags.php +++ b/Classes/Contao/Hooks/con4gisInsertTags.php @@ -106,6 +106,18 @@ public function replaceTag($strTag) } else { return 'not installed'; } + case 'tracking': + if ($packages['con4gis/tracking']) { + return $packages['con4gis/tracking']; + } else { + return 'not installed'; + } + case 'tracking-android': + if ($packages['con4gis/tracking-android']) { + return $packages['con4gis/tracking-android']; + } else { + return 'not installed'; + } default: return 'unknown'; } diff --git a/Resources/contao/composer.json b/Resources/contao/composer.json index a723d92a..5a989b9e 100644 --- a/Resources/contao/composer.json +++ b/Resources/contao/composer.json @@ -5,12 +5,22 @@ "type": "contao-module", "homepage": "https://con4gis.org", "license": "LGPL-3.0+", - "authors":[ + "authors": [ { - "name":"Küstenschmiede GmbH Software & Design", - "homepage":"https://kuestenschmiede.de" + "name": "Kuestenschmiede GmbH Software & Design", + "homepage": "https://kuestenschmiede.de", + "role": "Operator" + }, + { + "name": "con4gis community", + "homepage": "https://con4gis.org", + "role": "Developer" } ], + "support": { + "email": "support@con4gis.org", + "issues": "https://github.com/Kuestenschmiede/CoreBundle/issues" + }, "require": { "php":">=5.6.0", "contao/core-bundle": "~4.5", @@ -20,9 +30,6 @@ "contao/core": "*", "contao/manager-plugin": "<2.0 || >=3.0" }, - "support": { - "issues": "https://github.com/Kuestenschmiede/CoreBundle/issues" - }, "autoload": { "psr-4": { "con4gis\\CoreBundle\\": "" diff --git a/Resources/contao/templates/be_c4g_info.html5 b/Resources/contao/templates/be_c4g_info.html5 index 34a56b5f..6de462b5 100644 --- a/Resources/contao/templates/be_c4g_info.html5 +++ b/Resources/contao/templates/be_c4g_info.html5 @@ -346,25 +346,25 @@
- '_blank', - href => 'https://www.github.com/kuestenschmiede/TrackingAndroidBundle', - c4gImg => 'github', - label => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['GITHUB'] - )); ?> - '_blank', - href => 'https://community.contao.org/de/showthread.php?55911-con4gis_tracking-Offizieller-Support-Thread', - c4gImg => 'contao-board', - label => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['CONTAO_BOARD'] - )); ?> - '_blank', - addClass => 'floatR', - href => 'https://play.google.com/store/apps/details?id=org.con4gis.app4gis_tracking', - c4gImg => 'playstore', - label => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['PLAYSTORE'] - )); ?> + '_blank', + href => 'https://www.github.com/kuestenschmiede/TrackingAndroidBundle', + c4gImg => 'github', + label => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['GITHUB'] + )); ?> + '_blank', + href => 'https://community.contao.org/de/showthread.php?55911-con4gis_tracking-Offizieller-Support-Thread', + c4gImg => 'contao-board', + label => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['CONTAO_BOARD'] + )); ?> + '_blank', + addClass => 'floatR', + href => 'https://play.google.com/store/apps/details?id=org.con4gis.app4gis_tracking', + c4gImg => 'playstore', + label => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['PLAYSTORE'] + )); ?> 'install',