+--------------------------------------------------------------------+
*}
{*Table displays contribution totals for a contact or search result-set *}
-{if $annual.count OR $contributionSummary.total.count OR $contributionSummary.cancel.count OR $contributionSummary.soft_credit.count}
+{if !empty($annual.count) OR $contributionSummary.total.count OR $contributionSummary.cancel.count OR $contributionSummary.soft_credit.count}
<table class="form-layout-compressed">
- {if $annual.count}
+ {if !empty($annual.count)}
<tr>
- <th class="contriTotalLeft right">{ts}Current Year-to-Date{/ts} – {$annual.amount}</th>
- <th class="right"> {ts}# Completed Contributions{/ts} – {$annual.count}</th>
- <th class="right contriTotalRight"> {ts}Avg Amount{/ts} – {$annual.avg}</th>
- {if $contributionSummary.cancel.amount}
+ <th class="contriTotalLeft right">{ts}Current Year-to-Date{/ts} – {$annual.amount|smarty:nodefaults}</th>
+ <th class="right"> {ts}# Completed Contributions{/ts} – {$annual.count|smarty:nodefaults}</th>
+ <th class="right contriTotalRight"> {ts}Avg Amount{/ts} – {$annual.avg|smarty:nodefaults}</th>
+ {if $contributionSummary.cancel.amount|smarty:nodefaults}
<td> </td>
{/if}
</tr>
{if $contributionSummary }
<tr>
{if $contributionSummary.total.amount}
- <th class="contriTotalLeft right">{ts}Total{/ts} – {$contributionSummary.total.amount}</th>
- <th class="right"> {ts}# Completed{/ts} – {$contributionSummary.total.count}</th>
- <th class="right contriTotalRight"> {ts}Avg{/ts} – {$contributionSummary.total.avg}</th>
+ <th class="contriTotalLeft right">{ts}Total{/ts} – {$contributionSummary.total.amount|smarty:nodefaults}</th>
+ <th class="right"> {ts}# Completed{/ts} – {$contributionSummary.total.count|smarty:nodefaults}</th>
+ <th class="right contriTotalRight"> {ts}Avg{/ts} – {$contributionSummary.total.avg|smarty:nodefaults}</th>
{/if}
- {if $contributionSummary.cancel.amount}
- <th class="disabled right contriTotalRight"> {ts}Cancelled/Refunded{/ts} – {$contributionSummary.cancel.amount}</th>
+ {if $contributionSummary.cancel.amount|smarty:nodefaults}
+ <th class="disabled right contriTotalRight"> {ts}Cancelled/Refunded{/ts} – {$contributionSummary.cancel.amount|smarty:nodefaults}</th>
{/if}
</tr>
- {if $contributionSummary.soft_credit.count}
- {include file="CRM/Contribute/Page/ContributionSoftTotals.tpl" softCreditTotals=$contributionSummary.soft_credit}
+ {if $contributionSummary.soft_credit.count|smarty:nodefaults}
+ {include file="CRM/Contribute/Page/ContributionSoftTotals.tpl" softCreditTotals=$contributionSummary.soft_credit|smarty:nodefaults}
{/if}
{/if}