summary.php
118 lines
| 1 | <style> |
| 2 | .give-donation-summary-table-wrapper { |
| 3 | --primary-color: <?php echo $this->getPrimaryColor(); ?>; |
| 4 | } |
| 5 | </style> |
| 6 | <div class="give-donation-summary-section"> |
| 7 | |
| 8 | <?php |
| 9 | if ($heading = $this->getSummaryHeading()): ?> |
| 10 | <div class="heading"><?php |
| 11 | echo $heading; ?></div> |
| 12 | <?php |
| 13 | endif; ?> |
| 14 | |
| 15 | <div class="give-donation-summary-table-wrapper"> |
| 16 | |
| 17 | <table> |
| 18 | <thead> |
| 19 | <tr> |
| 20 | <th><?php |
| 21 | _e('Donation Summary', 'give'); ?></th> |
| 22 | <th> |
| 23 | <?php |
| 24 | if ($this->isMultiStep()): ?> |
| 25 | <button type="button" class="back-btn" onclick="GiveDonationSummary.handleNavigateBack(event)"> |
| 26 | <?php |
| 27 | _e('Edit Donation', 'give'); ?> |
| 28 | <?php |
| 29 | include plugin_dir_path(__DIR__) . 'images/pencil.svg'; ?> |
| 30 | </button> |
| 31 | <?php |
| 32 | endif ?> |
| 33 | </th> |
| 34 | </tr> |
| 35 | </thead> |
| 36 | <tbody> |
| 37 | |
| 38 | |
| 39 | <!-- PAYMENT AMOUNT --> |
| 40 | <tr> |
| 41 | <td> |
| 42 | <div><?php |
| 43 | _e('Payment Amount', 'give'); ?></div> |
| 44 | </td> |
| 45 | <td data-tag="amount"></td> |
| 46 | </tr> |
| 47 | |
| 48 | |
| 49 | <!-- GIVING FREQUENCY --> |
| 50 | <tr> |
| 51 | <td> |
| 52 | <div><?php |
| 53 | _e('Giving Frequency', 'give'); ?></div> |
| 54 | <?php |
| 55 | if ($this->isRecurringEnabled()): ?> |
| 56 | <span class="give-donation-summary-help-text js-give-donation-summary-frequency-help-text"> |
| 57 | <img src="<?php |
| 58 | echo GIVE_PLUGIN_URL . 'src/DonationSummary/resources/images/info.svg'; ?>" alt=""> |
| 59 | <span> |
| 60 | <?php |
| 61 | $isMultiStep = $this->isMultiStep(); |
| 62 | /* translators: 1: <button> open tag when multi-step 2: close tag when multi-step. */ |
| 63 | echo sprintf( |
| 64 | __('Consider making this donation %srecurring%s', 'give'), |
| 65 | $isMultiStep ? '<button type="button" class="back-btn" onclick="GiveDonationSummary.handleNavigateBack(event)">' : '', |
| 66 | $isMultiStep ? '</button>' : '' |
| 67 | ); |
| 68 | ?> |
| 69 | </span> |
| 70 | </span> |
| 71 | <?php |
| 72 | endif; ?> |
| 73 | </td> |
| 74 | <td> |
| 75 | <span data-tag="recurring"></span> |
| 76 | <span data-tag="frequency"><?php |
| 77 | _e('One time', 'give'); ?></span> |
| 78 | </td> |
| 79 | </tr> |
| 80 | |
| 81 | |
| 82 | <!-- COVER DONATION FEES --> |
| 83 | <?php |
| 84 | if ($this->isFeeRecoveryEnabled()): ?> |
| 85 | <tr class="js-give-donation-summary-fees"> |
| 86 | <td> |
| 87 | <div><?php |
| 88 | echo __('Cover Donation Fees', 'give'); ?></div> |
| 89 | <span class="give-donation-summary-help-text"> |
| 90 | <img src="<?php |
| 91 | echo GIVE_PLUGIN_URL . 'src/DonationSummary/resources/images/info.svg'; ?>" alt=""> |
| 92 | <?php |
| 93 | _e('Ensures 100% of your donation reaches our cause', 'give'); ?> |
| 94 | </span> |
| 95 | </td> |
| 96 | <td data-tag="fees">{fees}</td> |
| 97 | </tr> |
| 98 | <?php |
| 99 | endif; ?> |
| 100 | |
| 101 | |
| 102 | </tbody> |
| 103 | <tfoot> |
| 104 | |
| 105 | |
| 106 | <!-- TOTAL DONATION AMOUNT (INCLUDING FEES) --> |
| 107 | <tr> |
| 108 | <th><?php |
| 109 | _e('Donation Total', 'give'); ?></th> |
| 110 | <th data-tag="total"></th> |
| 111 | </tr> |
| 112 | |
| 113 | |
| 114 | </tfoot> |
| 115 | </table> |
| 116 | </div> |
| 117 | </div> |
| 118 |