From: Laury GvR Date: Thu, 13 Apr 2017 20:19:55 +0000 (-0400) Subject: detail view for members no empty rows X-Git-Tag: v1.0.0^2~17 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=3b9d13eae85f41b8dce35a9bd7ea42c2d9972525;p=WP-Plugins%2Fglm-member-db-fields.git detail view for members no empty rows Ensuring that the detail viewfile for members doesn't produce empty rows, while still allowing it to create the msrp slash-class. The extra rows were throwing off the nth-row styles, and really had no business existing in the first place. --- diff --git a/views/front/fields/detail.html b/views/front/fields/detail.html index 3f6049e..e6677ca 100644 --- a/views/front/fields/detail.html +++ b/views/front/fields/detail.html @@ -3,14 +3,15 @@ {foreach $field_values as $key=>$value} {if $value.slash === true }
- {else} +
{$value.nice}
+
{$value.data}
+
+ {elseif $value.data !== 'Yes' && $value.data !== 'No'}
+
{$value.nice}
+
{$value.data}
+
{/if} - {if $value.data !== 'Yes' && $value.data !== 'No'} -
{$value.nice}
-
{$value.data}
- {/if} - {/foreach}