From: Laury GvR Date: Wed, 12 Apr 2017 13:49:59 +0000 (-0400) Subject: Avoid duplicate field-containers markup X-Git-Tag: v1.0.0^2~26 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=0a12ca23ff4a93b100781fe7526fffdd3aaa189c;p=WP-Plugins%2Fglm-member-db-fields.git Avoid duplicate field-containers markup In the detail view file, the check for value.slash has been rearranged ensure there aren't any duplicate empty rows being created. --- diff --git a/views/front/fields/detail.html b/views/front/fields/detail.html index 7ab0aa8..1ee592e 100644 --- a/views/front/fields/detail.html +++ b/views/front/fields/detail.html @@ -1,16 +1,17 @@
Specifications
{foreach $field_values as $key=>$value} - {if $value.slash === true} + {if $value.slash === true}
- {else} +
{$value.nice}
+
{$value.data}
+
+ {elseif $value.data !== 'Yes' && $value.data !== 'No'}
- {/if} - {if $value.data !== 'Yes' && $value.data !== 'No'}
{$value.nice}
{$value.data}
- {/if}
+ {/if} {/foreach}
@@ -18,6 +19,7 @@ jQuery(document).ready(function($){ $('.slash-price').prev().children('.msrp').addClass('sale'); - + $('.slash-price').remove(); + }); \ No newline at end of file