From: Steve Sutton Date: Wed, 28 Feb 2018 17:22:06 +0000 (-0500) Subject: Update the forms for attendee X-Git-Tag: v1.0.0^2~37 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d87656e407e8f8bfa18aaeb796c6c2c50a595a80;p=WP-Plugins%2Fglm-member-db-registrations.git Update the forms for attendee If there's no custom fields for the add attendee then don't output the Additional Info Needed title. --- diff --git a/views/front/registrations/registration.html b/views/front/registrations/registration.html index 936daac..6058980 100644 --- a/views/front/registrations/registration.html +++ b/views/front/registrations/registration.html @@ -297,11 +297,13 @@ {/literal}{if apply_filters('glm-members-customfields-plugin-active', false)}{literal} -

Additional Info Needed

+ {/literal}{$fid = "glm_reg_customfields_reg_event_attendee_$regEventId"}{literal} + {/literal}{if apply_filters('glm-members-customfields-have-fields', false, $fid)}{literal} +

Additional Info Needed

+ {/literal}{/if}{literal}
{/literal} - {$fid = "glm_reg_customfields_reg_event_attendee_$regEventId"} {apply_filters( 'glm-members-customfields-form-display', '', $fid )} {literal}
@@ -396,7 +398,9 @@ {/literal}{if apply_filters('glm-members-customfields-plugin-active', false)}{literal} + {/literal}{if apply_filters('glm-members-customfields-have-fields', false, $fid)}{literal}

Additional Info Needed

+ {/literal}{/if}{literal}
{/literal}{/if}{literal}