From a9288b4abf0061b0a74001fa3e5e5dee159a9b8b Mon Sep 17 00:00:00 2001 From: Patrick Seeger Date: Thu, 19 Jun 2014 00:16:29 +0200 Subject: =?UTF-8?q?Es=20werden=20nur=20noch=20Standorte=20mit=20ver=C3=B6f?= =?UTF-8?q?fentlichten=20Vereinen=20angezeigt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protected/views/standort/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/protected/views/standort/index.php b/protected/views/standort/index.php index f5eda10..3ab1232 100644 --- a/protected/views/standort/index.php +++ b/protected/views/standort/index.php @@ -15,16 +15,20 @@ $this->menu=array( ".$standort->name."
"; foreach ($standort->vereine as $verein) { + if ( $verein->published > 0) { $has_childs=true; } $infostring .=CHtml::link($verein->name,array("verein/view","id"=>$verein->id))."
"; } $infostring .=""; $infoWindow = new EGMapInfoWindow($infostring); // Saving coordinates after user dragged our marker. + if ($has_childs) { $marker = new EGMapMarker($standort->pos_lat, $standort->pos_long, array('title' => $model->name, 'draggable'=>false), 'marker'); $marker->addHtmlInfoWindow($infoWindow); $map->addMarker($marker, $standort->published); + } } $map->render(); ?> -- cgit v1.0-28-g1787