From 861473637e63a3fa820bbfdaa29a81ad9f6bca71 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 11 Jul 2023 10:30:41 +1200 Subject: [PATCH] Re-remove TRUE and true IF --- .../Form/Contribution/MainMembershipBlock.tpl | 163 +++++++----------- 1 file changed, 63 insertions(+), 100 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution/MainMembershipBlock.tpl b/templates/CRM/Contribute/Form/Contribution/MainMembershipBlock.tpl index ae158f8fa9..4c83e629cd 100644 --- a/templates/CRM/Contribute/Form/Contribution/MainMembershipBlock.tpl +++ b/templates/CRM/Contribute/Form/Contribution/MainMembershipBlock.tpl @@ -8,108 +8,71 @@ +--------------------------------------------------------------------+ *}
- {if true} -
-
- {if $renewal_mode} - {if $membershipBlock.renewal_title} - {$membershipBlock.renewal_title} - {/if} - {if $membershipBlock.renewal_text} -
- {$membershipBlock.renewal_text} -
- {/if} - {else} - {if $membershipBlock.new_title} - {$membershipBlock.new_title} - {/if} - {if $membershipBlock.new_text} -
- {$membershipBlock.new_text} -
- {/if} - {/if} - {if !empty($membershipTypes)} - {foreach from=$membershipTypes item=row} - {if array_key_exists( 'current_membership', $row )} -
- {* Lifetime memberships have no end-date so current_membership array key exists but is NULL *} - {if $row.current_membership} - {if $row.current_membership|crmDate:"%Y%m%d" LT $smarty.now|crmDate:"%Y%m%d"} - {ts 1=$row.current_membership|crmDate 2=$row.name}Your %2 membership expired on %1.{/ts}
- {else} - {ts 1=$row.current_membership|crmDate 2=$row.name}Your %2 membership expires on %1.{/ts}
- {/if} - {else} - {ts 1=$row.name}Your %1 membership does not expire (you do not need to renew that membership).{/ts}
- {/if} -
- {/if} - {/foreach} - {/if} - - {include file="CRM/Price/Form/PriceSet.tpl" extends="Membership"} -
-
- {literal} - - {/literal} - {elseif $membershipBlock and $lineItem and $priceSetID AND !$is_quick_config} - {assign var="totalAmount" value=$amount} -
- {ts}Membership Fee{/ts} -
-
- {include file="CRM/Price/Page/LineItem.tpl" context="Membership"} -
- {elseif $membershipBlock AND !$is_quick_config} -
-
- {if $renewal_mode } - {if $membershipBlock.renewal_title} - {$membershipBlock.renewal_title} - {/if} - {if $membershipBlock.renewal_text} -
-

{$membershipBlock.renewal_text}

-
- {/if} - - {else} - {if $membershipBlock.new_title} - {$membershipBlock.new_title} - {/if} - {if $membershipBlock.new_text} -
-

{$membershipBlock.new_text}

-
+
+
+ {if $renewal_mode} + {if $membershipBlock.renewal_title} + {$membershipBlock.renewal_title} + {/if} + {if $membershipBlock.renewal_text} +
+ {$membershipBlock.renewal_text} +
+ {/if} + {else} + {if $membershipBlock.new_title} + {$membershipBlock.new_title} + {/if} + {if $membershipBlock.new_text} +
+ {$membershipBlock.new_text} +
+ {/if} + {/if} + {if !empty($membershipTypes)} + {foreach from=$membershipTypes item=row} + {if array_key_exists( 'current_membership', $row )} +
+ {* Lifetime memberships have no end-date so current_membership array key exists but is NULL *} + {if $row.current_membership} + {if $row.current_membership|crmDate:"%Y%m%d" LT $smarty.now|crmDate:"%Y%m%d"} + {ts 1=$row.current_membership|crmDate 2=$row.name}Your %2 membership expired on %1.{/ts}
+ {else} + {ts 1=$row.current_membership|crmDate 2=$row.name}Your %2 membership expires on %1.{/ts}
{/if} - {/if} - -
-
- - {/if}{* membership block end here *} + {else} + {ts 1=$row.name}Your %1 membership does not expire (you do not need to renew that membership).{/ts}
+ {/if} +
+ {/if} + {/foreach} + {/if} + {include file="CRM/Price/Form/PriceSet.tpl" extends="Membership"} + +
+ {literal} + +{/literal} + {if $membershipBlock AND $is_quick_config} {strip} -- 2.25.1