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