Skip to content

Commit

Permalink
add some more inserttags
Browse files Browse the repository at this point in the history
  • Loading branch information
coastforge-mei committed Oct 21, 2017
1 parent 540b162 commit 0ae1a6f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 25 deletions.
12 changes: 12 additions & 0 deletions Classes/Contao/Hooks/con4gisInsertTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down
19 changes: 13 additions & 6 deletions Resources/contao/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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\\": ""
Expand Down
38 changes: 19 additions & 19 deletions Resources/contao/templates/be_c4g_info.html5
Original file line number Diff line number Diff line change
Expand Up @@ -346,25 +346,25 @@
</legend>
<div>
<?php if ($GLOBALS['con4gis']['trackingAndroid']['installed']): ?>
<?php echo \con4gis\CoreBundle\Resources\contao\classes\C4GHTMLFactory::imgLink( array(
target => '_blank',
href => 'https://www.github.com/kuestenschmiede/TrackingAndroidBundle',
c4gImg => 'github',
label => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['GITHUB']
)); ?>
<?php echo \con4gis\CoreBundle\Resources\contao\classes\C4GHTMLFactory::imgLink( array(
target => '_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']
)); ?>
<?php echo \con4gis\CoreBundle\Resources\contao\classes\C4GHTMLFactory::imgLink( array(
target => '_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']
)); ?>
<?php echo \con4gis\CoreBundle\Resources\contao\classes\C4GHTMLFactory::imgLink( array(
target => '_blank',
href => 'https://www.github.com/kuestenschmiede/TrackingAndroidBundle',
c4gImg => 'github',
label => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['GITHUB']
)); ?>
<?php echo \con4gis\CoreBundle\Resources\contao\classes\C4GHTMLFactory::imgLink( array(
target => '_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']
)); ?>
<?php echo \con4gis\CoreBundle\Resources\contao\classes\C4GHTMLFactory::imgLink( array(
target => '_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']
)); ?>
<?php else: ?>
<?php echo \con4gis\CoreBundle\Resources\contao\classes\C4GHTMLFactory::imgLink( array(
c4gImg => 'install',
Expand Down

0 comments on commit 0ae1a6f

Please sign in to comment.