| 1 |
<?php |
| 2 |
/** |
| 3 |
* Displays the donate button to be displayed on campaign pages. |
| 4 |
* |
| 5 |
* Override this template by copying it to yourtheme/charitable/campaign/donate-button.php |
| 6 |
* |
| 7 |
* @author Studio 164a |
| 8 |
* @since 1.3.0 |
| 9 |
*/ |
| 10 |
|
| 11 |
$campaign = $view_args[ 'campaign' ]; |
| 12 |
|
| 13 |
?> |
| 14 |
<form class="campaign-donation" method="post"> |
| 15 |
<?php wp_nonce_field( 'charitable-donate-' . charitable_get_session()->get_session_id(), 'charitable-donate-now' ) ?> |
| 16 |
<input type="hidden" name="charitable_action" value="start_donation" /> |
| 17 |
<input type="hidden" name="campaign_id" value="<?php echo $campaign->ID ?>" /> |
| 18 |
<button type="submit" name="charitable_submit" class="donate-button button button-primary"><?php esc_attr_e( 'Donate', 'charitable' ) ?></button> |
| 19 |
</form> |