Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
change helper in moduel for agosmsaddressmarker
Browse files Browse the repository at this point in the history
  • Loading branch information
astridx committed Jul 28, 2019
1 parent 9e6b490 commit 656a431
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/modules/mod_agosm/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ public static function getListCustomField(&$params)

if ($field->type == 'agosmsaddressmarker')
{
// Get plugin parameters
$popup = $field->fieldparams->get('popup', '0');
$specialicon = $field->fieldparams->get('specialicon', '0');

$itemfiltered3->cords = $field->rawvalue;
$test = explode(",", $itemfiltered3->cords);

Expand All @@ -260,10 +264,17 @@ public static function getListCustomField(&$params)
$itemfiltered3->id = $item->id;
$itemfiltered3->lat = $test[0];
$itemfiltered3->lon = $test[1];
$itemfiltered3->iconcolor = $test[2];
$itemfiltered3->markercolor = $test[3];
$itemfiltered3->icon = $test[4];
$itemfiltered3->popuptext = $test[5];

if ($specialicon) {
$itemfiltered3->iconcolor = $test[2];
$itemfiltered3->markercolor = $test[3];
$itemfiltered3->icon = $test[4];
}

if ($popup) {
$itemfiltered3->popuptext = $test[5];
}

$itemsfiltered[] = $itemfiltered3;
}
}
Expand Down

0 comments on commit 656a431

Please sign in to comment.