From a7a22534c09825b3fec6094840752cbb7ca20de9 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Fri, 28 Jul 2017 13:13:33 -0400 Subject: [PATCH] Adding commas to the destination/activity/park search term display as well --- glm-member-db/views/front/members/list.html | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/glm-member-db/views/front/members/list.html b/glm-member-db/views/front/members/list.html index e0e2cc1..6cdd15d 100644 --- a/glm-member-db/views/front/members/list.html +++ b/glm-member-db/views/front/members/list.html @@ -12,20 +12,23 @@ Search Terms: {$key = 'regions'} {/if} {if $termCounter > 0}, {/if}{$searchParams->$key->$value[0]->name} - {/if} - {$termCounter = $termCounter + 1} + {/if} + {$termCounter = $termCounter + 1} {else} - {if $termCounter > 0}, {/if}{$value} - {$termCounter = $termCounter + 1} - {/if} + {if $termCounter > 0}, {/if}{$value} + {$termCounter = $termCounter + 1} + {/if} {elseif $key === 'categories'} {foreach $value as $index=>$id} {if $index == 0 && $id} - {$searchParams->destinations->{$id}->name} + {$searchParams->destinations->{$id}->name}{if $termCounter > 0}, {/if} + {$termCounter = $termCounter + 1} {else if $index == 1 && $id} - {$searchParams->activities->{$id}->name} + {$searchParams->activities->{$id}->name}{if $termCounter > 0}, {/if} + {$termCounter = $termCounter + 1} {else if $index == 2 && $id} - {$searchParams->parks->{$id}->name} + {$searchParams->parks->{$id}->name}{if $termCounter > 0}, {/if} + {$termCounter = $termCounter + 1} {/if} {/foreach} {/if} -- 2.17.1