2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
10 {*Table displays contribution totals for a contact or search result-set *}
11 {if !empty($annual.count) OR $contributionSummary.total.count OR $contributionSummary.cancel.count OR $contributionSummary.soft_credit.count}
12 <table class="form-layout-compressed">
14 {if !empty($annual.count)}
16 <th class="contriTotalLeft right">{ts}Current Year-to-Date{/ts} – {$annual.amount}</th>
17 <th class="right"> {ts}# Completed Contributions{/ts} – {$annual.count}</th>
18 <th class="right contriTotalRight"> {ts}Avg Amount{/ts} – {$annual.avg}</th>
19 {if $contributionSummary.cancel.amount}
25 {if $contributionSummary }
27 {if $contributionSummary.total.amount}
28 <th class="contriTotalLeft right">{ts}Total{/ts} – {$contributionSummary.total.amount}</th>
29 <th class="right"> {ts}# Completed{/ts} – {$contributionSummary.total.count}</th>
30 <th class="right contriTotalRight"> {ts}Avg{/ts} – {$contributionSummary.total.avg}</th>
32 {if isset($contributionSummary.cancel.amount)}
33 <th class="disabled right contriTotalRight"> {ts}Cancelled/Refunded{/ts} – {$contributionSummary.cancel.amount}</th>
36 {if isset($contributionSummary.soft_credit.count)}
37 {include file="CRM/Contribute/Page/ContributionSoftTotals.tpl" softCreditTotals=$contributionSummary.soft_credit}