| 1 |
<?php |
| 2 |
/** |
| 3 |
* The template for displaying form content in the single-give-form.php template |
| 4 |
* |
| 5 |
* Override this template by copying it to yourtheme/give/single-give-form/content-single-give-form.php |
| 6 |
* |
| 7 |
* @package Give/Templates |
| 8 |
* @version 1.0 |
| 9 |
*/ |
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
exit; // Exit if accessed directly. |
| 13 |
} |
| 14 |
|
| 15 |
/** |
| 16 |
* Fires in single form template, before the form. |
| 17 |
* |
| 18 |
* Allows you to add elements before the form. |
| 19 |
* |
| 20 |
* @since 1.0 |
| 21 |
*/ |
| 22 |
do_action( 'give_before_single_form' ); |
| 23 |
|
| 24 |
if ( post_password_required() ) { |
| 25 |
echo get_the_password_form(); |
| 26 |
return; |
| 27 |
} |
| 28 |
?> |
| 29 |
|
| 30 |
<div id="give-form-<?php the_ID(); ?>-content" <?php post_class(); ?>> |
| 31 |
|
| 32 |
<?php |
| 33 |
/** |
| 34 |
* Fires in single form template, before the form summary. |
| 35 |
* |
| 36 |
* Allows you to add elements before the form summary. |
| 37 |
* |
| 38 |
* @since 1.0 |
| 39 |
*/ |
| 40 |
do_action( 'give_before_single_form_summary' ); |
| 41 |
?> |
| 42 |
|
| 43 |
<div class="<?php echo apply_filters( 'give_forms_single_summary_classes', 'summary entry-summary' ); ?>"> |
| 44 |
|
| 45 |
<?php |
| 46 |
/** |
| 47 |
* Fires in single form template, to the form summary. |
| 48 |
* |
| 49 |
* Allows you to add elements to the form summary. |
| 50 |
* |
| 51 |
* @since 1.0 |
| 52 |
*/ |
| 53 |
do_action( 'give_single_form_summary' ); |
| 54 |
?> |
| 55 |
|
| 56 |
</div> |
| 57 |
<!-- .summary --> |
| 58 |
|
| 59 |
<?php |
| 60 |
/** |
| 61 |
* Fires in single form template, after the form summary. |
| 62 |
* |
| 63 |
* Allows you to add elements after the form summary. |
| 64 |
* |
| 65 |
* @since 1.0 |
| 66 |
*/ |
| 67 |
do_action( 'give_after_single_form_summary' ); |
| 68 |
?> |
| 69 |
|
| 70 |
</div><!-- #give-form-<?php the_ID(); ?> --> |
| 71 |
|
| 72 |
<?php |
| 73 |
/** |
| 74 |
* Fires in single form template, after the form. |
| 75 |
* |
| 76 |
* Allows you to add elements after the form. |
| 77 |
* |
| 78 |
* @since 1.0 |
| 79 |
*/ |
| 80 |
do_action( 'give_after_single_form' ); |
| 81 |
?> |
| 82 |
|