Update on amenities output
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 3 Mar 2015 16:53:58 +0000 (11:53 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 3 Mar 2015 16:53:58 +0000 (11:53 -0500)
Toolkit/Members/templates/memberDetail.tpl

index d610bee..3a5b8a0 100644 (file)
@@ -13,11 +13,18 @@ catid="catid" />
         {description:h}
 
         <p class="ital">
-            {if:amenities}
-                {foreach:amenities,amenity}
-                    {amenity:h},
-                {end:}
-            {end:}
+            <?php
+            if ($t->amenities) {
+                $total = count($t->amenities);
+                //var_dump($total);
+                for ($index = 0; $index < $total; ++$index) {
+                    echo $t->amenities[$index];
+                    if ($index != $total - 1) {
+                        echo ', ';
+                    }
+                }
+            }
+            ?>
         </p>
         <div flexy:if="files" id="member-files">
             <h2>Files Available for Download</h2>