alternative approach to remove snippet dependency
[civicrm-core.git] / templates / CRM / Contribute / Form / Contribution / ThankYou.tpl
index 147568f0a9b19f9ddb82709f606bcfaee8aadce7..fce8c8f8c6634803df0146622a1506796a17f8b0 100644 (file)
     </div>
   {/if}
 
-  {if $honor_block_is_active}
+  {if $onbehalfProfile|@count}
+    <div class="crm-group onBehalf_display-group label-left crm-profile-view">
+      {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'}
+      <div class="crm-section organization_email-section">
+        <div class="label">{ts}Organization Email{/ts}</div>
+        <div class="content">{$onBehalfEmail}</div>
+        <div class="clear"></div>
+       </div>
+    </div>
+  {/if}
+
+  {if $honoreeProfileFields|@count}
     <div class="crm-group honor_block-group">
       <div class="header-dark">
         {$soft_credit_type}
     </div>
   {/if}
 
-  {if $onbehalfProfile}
-    <div class="crm-group onBehalf_display-group label-left crm-profile-view">
-      {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'}
-      <div class="crm-section organization_email-section">
-        <div class="label">{ts}Organization Email{/ts}</div>
-        <div class="content">{$onBehalfEmail}</div>
-        <div class="clear"></div>
-       </div>
-    </div>
-  {/if}
-
   {if ( $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) ) or $email }
     {if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) }
       {if $billingName or $address}